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

后端 未结 3 1842
谎友^
谎友^ 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:31

    Encountered the same error on v0.49. Spent a lot of time and finally found that there are duplicates in my css declaration:

    logo: {
        flex:.3,
        height: 120, 
        marginBottom: 10,
    },
    
    logo: {
        ...styText,
        marginTop: 10
    },
    

    just removed the second declaration fixed the error.

提交回复
热议问题