PedroBern / react-native-collapsible-tab-view

A cross-platform Collapsible Tab View component for React Native
MIT License
827 stars 160 forks source link

TypeError: Cannot read property 'toString' of undefined #292

Open tanlucvo opened 1 year ago

tanlucvo commented 1 year ago

I got this issue when i use: "react-native-reanimated": "^2.9.1", "react-native-gesture-handler": "~1.6.0"


   <Tabs.Container>
      <Tabs.Tab name="B">
        <Tabs.ScrollView>
          <View style={[styles.box, styles.boxA]} />
          <View style={[styles.box, styles.boxB]} />
        </Tabs.ScrollView>
      </Tabs.Tab>
   </Tabs.Container>

_This error is located at:
    in MaterialTabBar
    in RCTView (at View.js:32)
    in View
    in RCTView (at View.js:32)
    in View (at createAnimatedComponent.js:507)
    in AnimatedComponent(View) (at createAnimatedComponent.js:512)_
sebastiangrebe commented 1 year ago

Just a guess but if you see the react-native-reanimated installation documentation that this may happen after installation and that you need to start with reset cache. (https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation#babel-plugin)

So my guess is maybe do one of those:

At least it fix a "toString" error for me

tanlucvo commented 1 year ago

Just a guess but if you see the react-native-reanimated installation documentation that this may happen after installation and that you need to start with reset cache. (https://docs.swmansion.com/react-native-reanimated/docs/fundamentals/installation#babel-plugin)

So my guess is maybe do one of those:

  • yarn start --reset-cache
  • npm start -- --reset-cache
  • expo start -c

At least it fix a "toString" error for me

Yeahh, I found this issue cause by apollo config ^-^