react-native-navigation icon indicating copy to clipboard operation
react-native-navigation copied to clipboard

V2 - 2.3.0 bottomTabs bug

Open Amenocy opened this issue 7 years ago • 24 comments

there is bug in new commit in 2.3.0 bottomTabs

initmobile\node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\views\BottomTabs.java:33: error: method does not override or implement a method from a supertype
    @Override
    ^
\initmobile\node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\views\BottomTabs.java:48: error: createItems() has private access in AHBottomNavigation
        super.createItems();
             ^
\initmobile\node_modules\react-native-navigation\lib\android\app\src\main\java\com\reactnativenavigation\viewcontrollers\bottomtabs\BottomTabsController.java:150: error: no suitable constructor found for AHBottomNavigationItem(String,Drawable,String)
            return new AHBottomNavigationItem(
                   ^
    constructor AHBottomNavigationItem.AHBottomNavigationItem(String,int,int) is not applicable
      (argument mismatch; Drawable cannot be converted to int)
    constructor AHBottomNavigationItem.AHBottomNavigationItem(int,int,int) is not applicable
      (argument mismatch; String cannot be converted to int)
    constructor AHBottomNavigationItem.AHBottomNavigationItem(String,Drawable,int) is not applicable
      (argument mismatch; String cannot be converted to int)
Note: C:\Users\Amin\Desktop\gittick\initmobile\node_modules\react-native-navigation\lib\android\app\src\reactNative57_5\java\com\reactnativenavigation\react\SyncUiImplementation.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
Note: Some input files use unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output
3 errors

i should mention that, it works by returning to 2.2.5

Amenocy avatar Dec 24 '18 16:12 Amenocy

Hey, you probably didn't recompile after npm installing.

guyca avatar Dec 25 '18 06:12 guyca

Same here..! App was working fine on oreo but when i upgrader to Android Pie it stopped working why ? Please help. ! Does RNN support android pie ? @guyca

eddysapata avatar Dec 30 '18 18:12 eddysapata

same issue!!!:

Task :react-native-navigation:compileReactNative57DebugJavaWithJavac FAILED /Users/guillermo/Documents/projects/react_native/njoyv3/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativen avigation/views/BottomTabs.java:33: error: method does not override or implement a method from a supertype @Override ^ /Users/guillermo/Documents/projects/react_native/njoyv3/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/views/BottomTabs.java:48: error: createItems() has private access in AHBottomNavigation super.createItems(); ^ /Users/guillermo/Documents/projects/react_native/njoyv3/node_modules/react-native-navigation/lib/android/app/src/main/java/com/reactnativenavigation/viewcontrollers/bottomtabs/BottomTabsController.java:150: error: no suitable constructor found for AHBottomNavigationItem(String,Drawable,String) return new AHBottomNavigationItem( ^ constructor AHBottomNavigationItem.AHBottomNavigationItem(String,int,int) is not applicable (argument mismatch; Drawable cannot be converted to int) constructor AHBottomNavigationItem.AHBottomNavigationItem(int,int,int) is not applicable (argument mismatch; String cannot be converted to int) constructor AHBottomNavigationItem.AHBottomNavigationItem(String,Drawable,int) is not applicable (argument mismatch; String cannot be converted to int) Note: Some input files use unchecked or unsafe operations. Note: Recompile with -Xlint:unchecked for details. Note: Some messages have been simplified; recompile with -Xdiags:verbose to get full output 3 errors

"react-native": "^0.57.8", "react-native-navigation": "^2.5.0",

jagowm avatar Jan 03 '19 23:01 jagowm

This is also happening to me on latest 2.6.0 version. I've cleaned and rebuilt my Android project multiple times, no luck.

bensont1 avatar Jan 12 '19 23:01 bensont1

any luck on this? same issue on version 2.7. iOS works well.

janroures avatar Jan 21 '19 17:01 janroures

Nope.. Sadly Moved to react navigation

On Mon, Jan 21, 2019, 11:22 PM Jan Roures Mintenig [email protected] wrote:

any luck on this? same issue on version 2.7. iOS works well.

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/wix/react-native-navigation/issues/4498#issuecomment-456154683, or mute the thread https://github.com/notifications/unsubscribe-auth/AHOlLEO2E8iRjbebVphyHvWa7I0zsj6Eks5vFf5QgaJpZM4ZgkP8 .

eddysapata avatar Jan 21 '19 18:01 eddysapata

check whether com.github.wix-playground:ahbottomnavigation's version under node_modules/react-native-navigation/lib/android/app/build.gradle is 2.4.6?

wsliaw avatar Jan 22 '19 01:01 wsliaw

it is 2.4.8. should that matter?

janroures avatar Jan 22 '19 10:01 janroures

should be okay

wsliaw avatar Jan 22 '19 10:01 wsliaw

have you faced the issue before?

janroures avatar Jan 22 '19 10:01 janroures

yes, i was using latest version but somehow i found that the ahbottomnavigation version is not correct, after manually update it everything works again

wsliaw avatar Jan 22 '19 10:01 wsliaw

you downgraded from 2.4.8 to 2.4.6?

janroures avatar Jan 22 '19 10:01 janroures

nope, was 2.3.x

wsliaw avatar Jan 22 '19 10:01 wsliaw

oh okay. I'm facing the issue with 2.4.8 :/

janroures avatar Jan 22 '19 10:01 janroures

Facing the same issue here.

amol-c avatar Jan 22 '19 16:01 amol-c

which version of com.github.wix-playground:ahbottomnavigation's under node_modules/react-native-navigation/lib/android/app/build.gradle are you using?

janroures avatar Jan 22 '19 16:01 janroures

@janroures The react-native-navigation is referring to com.github.wix-playground:ahbottomnavigation:2.4.5. If i change to the latest tag 2.4.8 from https://github.com/wix-playground/ahbottomnavigation/releases, everything seems to be working fine.

🤔

amol-c avatar Jan 22 '19 17:01 amol-c

after installing and trying different versions and everything worked fine when I got back to 2.4.8

janroures avatar Jan 22 '19 17:01 janroures

Yea. i updated to the latest release 2.7.1-snapshot.159 and it worked.

👍

amol-c avatar Jan 22 '19 17:01 amol-c

Same problem here on 2.7.1 and also on 2.7.1-snapshot.160 on a colleague's setup. Works fine by rollbacking to 2.5.1! react-native version is 0.57.8.

All versions works fine on my computer though...

obshksw avatar Jan 23 '19 14:01 obshksw