“RNCSafeAreaView” was not found in the UIManager

前端 未结 6 1394
难免孤独
难免孤独 2021-02-13 09:56

I try to open a bundle, but when the android is running it shows the next message

2020-01-05 23:15:45.366 26210-26210/com.note.principal W/.note.princi

6条回答
  •  隐瞒了意图╮
    2021-02-13 10:53

    I encountered the same error. In order to solve it make sure to install react-native-safe-area-context.

    npm install react-native-safe-area-context

    Then if you are using React Native 0.61.X make sure to do a pod install. It will link everything together.

    If you are using React Native < 0.6 then you need to do the linking manually with react-native link react-native-safe-area-context

提交回复
热议问题