React-native-tab-view: got error in collapsible-header-with-tabview

Created on 1 Aug 2018  路  2Comments  路  Source: satya164/react-native-tab-view

I followed this example about collapsible-header-with-tabview but got this error at run:

 Invariant Violation: Invariant Violation: Element type is invalid: expected a string (for built-in components) or a class/function (for composite components) but got: undefined. You likely forgot to export your component from the file it's defined in, or you might have mixed up default and named imports.
 ReactNativeJS: Check the render method of `TabView`.`

Most helpful comment

I think i khew what's the problem...the code has an import like this:
import { TabViewAnimated, TabBar } from 'react-native-tab-view';
but there isn't any TabViewAnimated class in react-native-tab-view .
i think my react-native-tab-view version in 1.0
so what can i do about that???

All 2 comments

I think i khew what's the problem...the code has an import like this:
import { TabViewAnimated, TabBar } from 'react-native-tab-view';
but there isn't any TabViewAnimated class in react-native-tab-view .
i think my react-native-tab-view version in 1.0
so what can i do about that???

Hey, I just released a new alpha 2.0.0-alpha.0 of the library. It's rewritten using react-native-gesture-handler and react-native-reanimated addresses a many platform specific bugs and performance problems. The documentation is updated as well.

Please try the new version and see if it addresses your issue. If not, please open a new issue following the issue template.

Was this page helpful?
0 / 5 - 0 ratings

Related issues

satya164 picture satya164  路  3Comments

compojoom picture compojoom  路  4Comments

nastarfan picture nastarfan  路  3Comments

moerabaya picture moerabaya  路  4Comments

ios-dev-newbie picture ios-dev-newbie  路  3Comments