corymsmith / react-native-icons

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

Can't find variable: Symbol #149

Closed atom992 closed 8 years ago

atom992 commented 8 years ago

Hi, my env: react-native-cli : 0.1.7 react-native : 0.16.0 react-native-icons: 0.7.0
when I run my app ,I got the following error: E/ReactNativeJS( 2973): Can't find variable: Symbol
but the Example of react-native-icons works fine.

corymsmith commented 8 years ago

Can you share more of the error or logs? Like where that error is happening?

Thanks, Cory Smith On Wed, Dec 9, 2015 at 7:03 AM, corymsmith/react-native-icons reply@reply.github.com wrote: Hi, my env: react-native-cli : 0.1.7 react-native : 0.16.0 react-native-icons [https://github.com/corymsmith/react-native-icons] : 0.7.0

when I run my app ,I got the following error: E/ReactNativeJS( 2973): Can't find variable: Symbol

but the Example of react-native-icons works fine.

— Reply to this email directly or view it on GitHub [https://github.com/corymsmith/react-native-icons/issues/149] .[https://github.com/notifications/beacon/AAAck7iCGBCMIhrfHYOi341JAF4FeLQHks5pOCwdgaJpZM4Gx37H.gif]

atom992 commented 8 years ago

there is no more error logs. the whole logs when the app running:

W/ReactNativeJS( 2973): Warning: Native component for "RCTMap" does not exist
W/ReactNativeJS( 2973): Warning: Native component for "RCTModalHostView" does not exist
W/ReactNativeJS( 2973): Warning: Native component for "RCTWebView" does not exist
I/ReactNativeJS( 2973): I'm `fs` modules
I/ReactNativeJS( 2973): Running application "My-ReactNative-Android-Demo" with appParams: {"initialProps":{},"rootTag":1}. __DEV__ === true, development-level warning are ON, performance optimizations are OFF
E/ReactNativeJS( 2973): Can't find variable: Symbol
corymsmith commented 8 years ago

Maybe try a clean and rebuild and make sure you've restarted the packager after upgrading RN or this library as well

corymsmith commented 8 years ago

This doesn't appear to be an issue with this module. See https://github.com/facebook/react-native/issues/4587

ranyefet commented 8 years ago

I've used this polyfill and it fixed my problem: https://github.com/medikoo/es6-symbol