This is a modification based on react-native-scrollable-tab-view. Due to bugs and compatibility issues in the plugin itself, this version is released to avoid frequent modification of the original plugin. For learning use only.
- Run
npm install react-native-scrollable-tabviewfork --save
var ScrollableTabView = require('react-native-scrollable-tabviewfork ');
var ScrollableTabView = require('react-native-scrollable-tabviewfork');
var App = React.createClass({
render() {
return (
<ScrollableTabView>
<ReactPage tabLabel="React" />
<FlowPage tabLabel="Flow" />
<JestPage tabLabel="Jest" />
</ScrollableTabView>
);
}
});
This version update mainly removes the @react-native-community/viewpager code, and removes the distinction between the android system and the IOS system。