web-ridge / react-native-paper-tabs

Smooth and fast cross platform Material Design Tabs for React Native Paper
https://reactnativepapertabs.com
MIT License
190 stars 34 forks source link

Render Error: TypeError: Cannot read property 'props' of null #21

Closed srivastavaanurag79 closed 2 years ago

srivastavaanurag79 commented 2 years ago

Screenshot_1631103406

image

image

I don't know why i am getting this error, it says in tab.props.label => props is null

srivastavaanurag79 commented 2 years ago

nevermind i moved to a different package

RichardLindhout commented 2 years ago

Don't console log within Tabs it thinks it is a tab

srivastavaanurag79 commented 2 years ago

I added it afterwards to check is it even trying to render the tabs, it doesn't work without the logs.

RichardLindhout commented 2 years ago

Maybe the without the commented code? The icon is also wrong it's icon={undefined} not icon={"undefined"} the latest is not really undefined but a string with undefined as text

srivastavaanurag79 commented 2 years ago

tried everything nothing worked, I think the problem is something related to the react-native-page-viewer on which this package is dependent, it is not receiving the props it needs to display or something if you have seen the first pic I have shared you can see in it. I have moved on to React Native Segmented Control it doesn't depend on any other package and is quite simple to customize.