-
Notifications
You must be signed in to change notification settings - Fork 24.3k
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
TypeError: expected dynamic type double but had type string react native #3216
Comments
Closing this. Let's reopen if this still happens. |
Getting same error on Android with:
The elements I have tied to my app are:
|
Seems to be specific to something like:
|
@hzyio - I am having same issue; works on iOS but giving error on Android. Let me know did you found any solution. |
I have the same error. It happens when I rotate elements and then click on them. One element is the switcher of camera (react-native-camera), another one - go back arrow from react-navigation. |
Also experiencing this issue, seems to be on this line:
When fetching a rotation value, it fails because the rotation value is a string (like '10deg') instead of a double. Still thinking about a solution that doesn't involve changing react-native itself. |
Wrap the element in a View and rotate this view, not element. |
@natakina you are a god among men, it works perfectly. |
@natakina yes all Right thank you for perfect answer |
These sort of incoherent implementations is really annoying when you develop iOS firs then check on Android. |
This issue seems like #2983 and #2855 however it's slightly different wording.
I've read both of those issues now and can't understand what the fix is. For instance, the fix says to move a folder called ReactAndroid into your project folder and adding it to settings.gradle. But where is this ReactAndroid folder? I don't see it.
I am on React Native 0.11.4 and can't simply use 0.12.0-rc (assuming that would fix it...) because upgrading to -rc breaks other libraries (I get errors like "Peer react-native-fbsdklogin@0.0.4 wants react-native@>=0.8.0")
The text was updated successfully, but these errors were encountered: