2

Background

Hey everyone, I'm building my first React Native app without Expo. I'm trying to use @react-navigation/bottom-tabs, I've followed the instructions provided in the docs every step of the way. I'm then trying to add react-native-appearance to handle dark mode preference from device. However, from here on out things get tricky when I try to run the app using an Android emulator.

Problem

ERROR react-native-gesture-handler module was not found. Make sure you're running your app on the native platform and your code is linked properly (cd ios && pod install && cd ..).

And that is followed by a number of variations of this error message:

TypeError: null is not an object (evaluating '_$$_REQUIRE(_dependencyMap[8], "./NativeAppearance").NativeAppearance.initialPreferences')

What I've tried

As I've mentioned earlier, I've referred to the Navigation docs, but also to all the following:

How you can help me

I would really appreaciate if someone could let me know how to solve this issue, I imagine it has to do with compatibility with Appearance, so I'll be checking that out while I wait for an answer.

Thanks a lot in advance!

satya164
  • 9,464
  • 2
  • 31
  • 42
lwisi
  • 293
  • 8
  • 23

0 Answers0