Coder Social home page Coder Social logo

Comments (10)

kadiraydinli avatar kadiraydinli commented on May 12, 2024

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.

MSetnik avatar MSetnik commented on May 12, 2024

Still doesnt work.
Im on RN version 0.66.0 so that could be the issue

from react-native-system-navigation-bar.

kadiraydinli avatar kadiraydinli commented on May 12, 2024

@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.

MSetnik avatar MSetnik commented on May 12, 2024

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.

kadiraydinli avatar kadiraydinli commented on May 12, 2024

@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.

MSetnik avatar MSetnik commented on May 12, 2024

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.

kadiraydinli avatar kadiraydinli commented on May 12, 2024

Have you tried using the previous version, version 2.5.2?

from react-native-system-navigation-bar.

dmitry-zaitsev avatar dmitry-zaitsev commented on May 12, 2024

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:

6aeeca7

from react-native-system-navigation-bar.

kadiraydinli avatar kadiraydinli commented on May 12, 2024

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.

kadiraydinli avatar kadiraydinli commented on May 12, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.