React native Android SyntaxError: Attempted to redefine property 'key'

后端 未结 3 1862
谎友^
谎友^ 2021-01-18 19:11

I get the following error on Emulators (tested Genymotion and google Stock Emulator) and on a physical device (Samsung S4) after running react-native run-android

3条回答
  •  醉酒成梦
    2021-01-18 19:16

    I had the same error but with a different keyword

    In my case the keyword was declared twice in my css styles properties.

    let styles = StyleSheet.create({
        keyword:{}, 
        keyword:{}
    });
    

    No crash or warning on iOS but causing a crash on Android.

提交回复
热议问题