Closed teaegg closed 8 years ago
A babel issue.
Replace
export default class TabNavigator extends React.Component {
...
}
With ->
module.exports = TabNavigator;
class TabNavigator extends React.Component {
...
}
done.
if you use require('react-native-tab-navigator')
to import this. please change to import XX from 'react-native-tab-navigator'
This helps me.
thanks, it works well.
With RN 0.16 you should use ES6 modules (import / export) instead of CommonJS (require / module.exports).
I got a warning: React.createElement type should not be null. And, tab-navigator could not display after updated to RN 0.16 and react-native-tab-navigator@0.2.13 on Android.