React-native-tab-view: compatibility issue, children are not being rendered!

Created on 1 Apr 2021  路  3Comments  路  Source: satya164/react-native-tab-view

I guess this problem happens because of the latest react-native update and the issue is coming react-native

I noticed this message while compiling!

Task :react-native-pager-view:compileDebugKotlin
w: C:\\node_modulesreact-native-pager-view\android\src\main\java\com\reactnativepagerview\PagerViewViewManager.kt: (74, 9): Condition 'child == null' is always 'false'
w: C:\\node_modulesreact-native-pager-view\android\src\main\java\com\reactnativepagerview\PagerViewViewManager.kt: (152, 11): 'receiveCommand(T, Int, ReadableArray?): Unit' is deprecated. Deprecated in Java
w: C:\\node_modules\node_modulesreact-native-pager-view\android\src\main\java\com\reactnativepagerview\PagerViewViewManager.kt: (158, 24): Unnecessary non-null assertion (!!) on a non-null receiver of type EventDispatcher
w: C:\\node_modulesreact-native-pager-view\android\src\main\java\com\reactnativepagerview\PagerViewViewManager.kt: (163, 24): Unnecessary non-null assertion (!!) on a non-null receiver of type EventDispatcher

HERE IS A SCREENSHOTTT

https://prnt.sc/11194na

| software | version
yarn
android
"react-native": "0.64.0",
"react-native-tab-view": "^3.0.0",
"react-native-pager-view": "^5.1.2",

bug

Most helpful comment

I just experienced this just now, and anytime i add a ScrollView to the screen, my tab rendering disappears.

installing an old version like 2.14.4, got it working again.

All 3 comments

I am also having the same issue and have the same package versions as OP has. Did anyone find a work around for this?

edit: in my case the issue was resolved after removing ScrollView in favor of View from parent and adding the ScrollView to tab component (which wasn't ideal for my screen but still better than a non-working screen)

I just experienced this just now, and anytime i add a ScrollView to the screen, my tab rendering disappears.

installing an old version like 2.14.4, got it working again.

installing an old version like 2.14.4, got it working again.

Can confirm, this also resolved the issue for me

Was this page helpful?
0 / 5 - 0 ratings

Related issues

f6m6 picture f6m6  路  3Comments

nastarfan picture nastarfan  路  3Comments

lubomyr picture lubomyr  路  3Comments

QuentinBrosse picture QuentinBrosse  路  4Comments

KingAmo picture KingAmo  路  3Comments