Closed ghost closed 5 years ago
java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams
+1 with bottomTabs
V3 assumes layouts are CoordinatorLayouts, we need to change this to extend CoordinatorLayout and add the ViewPager as a child of that layout.
@Damar95 Can you please take this?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. If you believe the issue is still relevant, please test on the latest Detox and report back. Thank you for your contributions.
The issue has been closed for inactivity.
This is still an issue on 3.2.0 and React 0.61.2
java.lang.ClassCastException: android.view.ViewGroup$LayoutParams cannot be cast to androidx.coordinatorlayout.widget.CoordinatorLayout$LayoutParams
Any update on this? The topTabs still very broken in V3. I almost have no idea how to move with my application now. Please, don't close this issue as stale.
+1
topTapOptions
java.lang.NullPointerException: Attempt to invoke virtual method 'int android.view.ViewGroup.getChildCount()' on a null object reference 09-20 11:57:21.621 23520 23520 E AndroidRuntime: at com.reactnativenavigation.utils.ViewUtils.findChildByClass(ViewUtils.java:20) 09-20 11:57:21.621 23520 23520 E AndroidRuntime: at com.reactnativenavigation.views.toptabs.TopTabsStyleHelper.applyOnTabTitle(TopTabsStyleHelper.java:49) 09-20 11:57:21.621 23520 23520 E AndroidRuntime: at com.reactnativenavigation.views.toptabs.TopTabsStyleHelper.setFontFamily(TopTabsStyleHelper.java:45) 09-20 11:57:21.621 23520 23520 E AndroidRuntime: at com.reactnativenavigation.views.toptabs.TopTabs.setFontFamily(TopTabs.java:23) 09-20 11:57:21.621 23520 23520 E AndroidRuntime: at com.reactnativenavigation.views.stack.topbar.TopBar.setTopTabFontFamily(TopBar.java:219)
Issue Description
Navigation hierachies which used to work in V2 do not work anymore.
Steps to Reproduce / Code Snippets / Screenshots
For example the following code works in V2 but not anymore in V3:
it throws the following error:
i dont know much about android development so i can't find a solutoin but i think it have to do with the androidx portion because the error
i hope there is a quick fix for it.
btw. the following works:
Environment
React Native Navigation version: 3.0.0-alpha.11
React Native version: 0.60.4
Platform(s) (iOS, Android, or both?): Android, iOS not tested
Device info (Simulator/Device? OS version? Debug/Release?): Simulator and Device; Debug; Release not tested
React Native Navigation version: 2.26.5
React Native version: 0.59.10
Platform(s) (iOS, Android, or both?): Android, iOS not tested
Device info (Simulator/Device? OS version? Debug/Release?): Simulator and Device; Debug; Release not tested