corymsmith / react-native-icons

Quick and easy icons in React Native
MIT License
1.14k stars 141 forks source link

Can't seem to use it in Android #152

Closed nbastoWM closed 8 years ago

nbastoWM commented 8 years ago

In iOS all goes fine but in Android when I run the app it shows me the error screen:

TypeError: expected dynamic type 'boolean', but had type 'int64' (constructing arguments for RCTNetworking.sendRequest at argument index 5)

screen shot 2015-12-11 at 09 20 12

and in the logs:

--------- beginning of /dev/log/system
W/ReactNativeJS( 1346): 'Warning: Native component for "RCTModalHostView" does not exist'
W/ReactNativeJS( 1346): '`ProgressBarAndroid` has no propType for native prop `AndroidProgressBar.progress` of native type `number`'

The build goes I have RN 0.15 and when I tried to upgrade to 0.16 there was too much hassle regarding dependencies so I had to rollback.

nbastoWM commented 8 years ago

I got it working by changing the version to 0.6.3. Isn't 0.7 compatible with RN 0.15?

corymsmith commented 8 years ago

Did you update your gradle files React dependency?

nbastoWM commented 8 years ago

I did as instructed in the "Getting started - Android".

corymsmith commented 8 years ago

Errors like this are usually caused by the Java code and he code getting out of sync. What version of RN is in your gradle file and what version of RN is in your package.json.

nbastoWM commented 8 years ago

In package json I have "react-native": "^0.15.0",

in build.gradle I have: compile "com.facebook.react:react-native:0.15.+"

Should I specify "0.15.0" and react-native:0.15.0 ?

corymsmith commented 8 years ago

Either should work. Are you still getting the same error?

jawadrehman commented 8 years ago

i have the same issue @corymsmith

corymsmith commented 8 years ago

@jawadrehman What error are you getting? Also, what version of React Native is in your package.json file & gradle file. And what version of this library?

corymsmith commented 8 years ago

I would highly recommend updating to 0.16.0. The error above doesn't seem like it has anything to do with this project. The example project uses 0.16.0 and works great

jawadrehman commented 8 years ago

@corymsmith i tried updating to version 16 i got a bunch of other errors about something with UndefinedView . so had to downgrade to 0.15

jawadrehman commented 8 years ago

i will try to upgrade and resolve the issues.

corymsmith commented 8 years ago

@jawadrehman @nbastoWM Did you end up sorting this out? I'm hoping to close this issue since I'm fairly certain its not related to this project.

nbastoWM commented 8 years ago

I'm using 0.6.3. I guess 0.7 requires RN 0.16. Version 0.6.3 seems to work fine for me. Thanks.

jawadrehman commented 8 years ago

@corymsmith version 0.7 worked fine with 0.16