Comments (10)
Hi @MSetnik, can you run the following command in the project's home directory and test again?
cd android && ./gradlew clean && cd ..
from react-native-system-navigation-bar.
Still doesnt work.
Im on RN version 0.66.0 so that could be the issue
from react-native-system-navigation-bar.
@MSetnik Do you get this error when you try to use the "setFitsSystemWindows" function of the this package? Can you share the versions of buildToolsVersion
, minSdkVersion
, compileSdkVersion
and targetSdkVersion
in your android/build.gradle
file?
As you said, react native version is very old and probably doesn't support setDecorFitsSystemWindows
. I can quickly release a new version. By the way, I suggest you to upgrade your React Native version as well.
from react-native-system-navigation-bar.
buildToolsVersion = "30.0.2"
minSdkVersion = 21
compileSdkVersion = 31
targetSdkVersion = 31
ndkVersion = "21.4.7075529"
The problem is I cannot currently upgrade RN version because app depends on older plugins :/
from react-native-system-navigation-bar.
@MSetnik Got it. Do you get this error when you try to use the setFitsSystemWindows
function of this package in your project? Or are you getting this error when using a different function?
from react-native-system-navigation-bar.
Still getting error after changing WindowCompat.setDecorFitsSystemWindows(view, enabled);
to WindowCompat.setFitsSystemWindows(view, enabled);
node_modules/react-native-system-navigation-bar/android/src/main/java/com/reactnativesystemnavigationbar/SystemNavigationBarModule.java:289: error: cannot find symbol
WindowCompat.setFitsSystemWindows(view, enabled);
^
symbol: method setFitsSystemWindows(Window,Boolean)
location: class WindowCompat
App doesnt build because of that error
from react-native-system-navigation-bar.
Have you tried using the previous version, version 2.5.2?
yarn add [email protected]
from react-native-system-navigation-bar.
Same problem here. Works on 2.5.0
, doesn't work on 2.6.0
. Downgrading is not ideal since we would like to have this fix available:
from react-native-system-navigation-bar.
Hi @MSetnik, @dmitry-zaitsev I made the change for this issue. You can test the change in the latest version 2.6.1
from react-native-system-navigation-bar.
Update: I'm closing this issue assuming the issue has been resolved. If your problem persists, feel free to reopen the issue.
from react-native-system-navigation-bar.
Related Issues (20)
- Dark navigation bar doesn't work HOT 6
- Bug > When using with notifee the app crash HOT 2
- Error: false - in Release Mode HOT 5
- Unable to use in latest React Native version (in version `2.1.0`) HOT 2
- Error: NavigationBar is null (Expo) HOT 1
- setNavigationColor('transparent') will make `KeyboardAvoidingView` not work HOT 10
- Bug by selecting preferred system navigation from settings HOT 2
- Bug: setSystemUIFlags is calling promise.resolve and promise.reject which could cause a NullPointerException
- TypeError: Cannot read property 'fullScreen' of undefined HOT 4
- I cannot install android, could you help me? HOT 2
- Cannot call function. Possible Unhandled Promise Rejection (id: 0): TypeError: Cannot read property 'navigationHide' of null ? HOT 4
- Bug: Android 12 HOT 7
- Question: transluscent vs transparent HOT 6
- not hidding the status and navigation bar in modal HOT 15
- Support new React Native new architecture (TurboModules/Fabric)
- I see some `IllegalViewOperationException: current activity is null` errors in Sentry HOT 2
- Bottom bar reappears whenever I click (not swipe) the screen HOT 2
- Error in Sentry: Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference HOT 1
- SetModeStyle - Attempt to invoke virtual method 'android.view.Window android.app.Activity.getWindow()' on a null object reference HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-system-navigation-bar.