kadiraydinli / react-native-system-navigation-bar

React Native lets you customize the navigation bar for Android.
https://www.npmjs.com/package/react-native-system-navigation-bar
MIT License
270 stars 19 forks source link

TypeError: Cannot read property 'fullScreen' of undefined #42

Closed NishadilDev closed 1 year ago

NishadilDev commented 1 year ago

With SystemNavigationBar.fullScreen(true);

getting TypeError: Cannot read property 'fullScreen' of undefined

kadiraydinli commented 1 year ago

Hi @NishadilDev, can you provide information about the react and react-native versions you are trying to use?

NishadilDev commented 1 year ago

Hi @kadiraydinli versions we used... ( copied directly from our package.json )

"react": "18.1.0",
"react-native": "0.70.3",
kadiraydinli commented 1 year ago

Hi @NishadilDev, I tested it but it seems to works fine. It's weird that you are getting this error. What are your Android build.gradle, compileSdkVersion, targetSdkVersion and buildToolsVersion versions? Also can you explain in more detail how the problem occurred? It will help me a lot in solving the problem. Thans in advance.

kadiraydinli commented 1 year ago

Hi again @NishadilDev, I think the following command will work to fix the issue. I'm closing the issue for now. If your problem persists, feel free to open it again.

cd android && ./gradlew clean && cd ..