Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Android only] TypeError : expected dynamic type 'double' but had type 'string'. #9

Closed
ershubhamgarg opened this issue Nov 22, 2017 · 9 comments

Comments

@ershubhamgarg
Copy link

ershubhamgarg commented Nov 22, 2017

@doomsower In iOS, popover is working fine but in android simulator, it shows error : expected dynamic type 'double' but had type 'string'. I have also tested it on device but the error is same.

@alewiahmed
Copy link

This problem is still not fixed. For anyone who is still interested, what you can do for now is comment the line that says useNativeDriver: true @ line 91 inside the popover.js file. Or if you don't want to do that, you can remove the rotate or scale fields (one of them will do) from the transform array at line 125. I think the problem is with the rotate transform for the triangle.

@doomsower
Copy link
Owner

What version of RN are you using?
I had this problem before, but then I updated example to 0.50 and I didn't need this workaround, so I removed it from the latest version. But maybe I tested it on ios only.

@wli
Copy link

wli commented Nov 29, 2017

@doomsower I'm using 0.50 and run into this problem on android.

@wli
Copy link

wli commented Nov 29, 2017

Underlying issue is here: facebook/react-native#14161

The workarounds that @alewiahmed talked about make sense and I've tested that they work.

@wli
Copy link

wli commented Nov 29, 2017

PR that sidesteps the problem for now: #10

@ershubhamgarg
Copy link
Author

@doomsower I am using RN version 0.44.0 and facing this problem in android only. Can you suggest something to avoid it ?

@doomsower
Copy link
Owner

@ershubhamgarg Try to use version 0.0.2 of this package, it should work on android and still use native driver. I'll partially revert 0.0.3 soon or merge @wli pr. I'm not sure if my previous workaround was any better than not using native driver at all.

@ershubhamgarg
Copy link
Author

@alewiahmed Thanks. it worked by removing scale field from transform array.

@gillesBzk
Copy link

I try the differents solution but nothing work for me :(
react-native-modal-popover": "0.0.7",
"react": "^16.2.0",
"react-native": "0.53.0",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

5 participants