mirror of
https://github.com/zhigang1992/react-native-segmented-control-tab.git
synced 2026-01-13 09:30:04 +08:00
36 lines
578 B
JavaScript
36 lines
578 B
JavaScript
/**
|
|
* Sample React Native App
|
|
* https://github.com/facebook/react-native
|
|
* @flow
|
|
*/
|
|
|
|
import React, { Component } from 'react';
|
|
import {
|
|
AppRegistry,
|
|
StyleSheet,
|
|
Text,
|
|
View
|
|
} from 'react-native';
|
|
|
|
import ExampleMain from './ExampleMain'
|
|
|
|
class Example extends Component {
|
|
render() {
|
|
return (
|
|
<ExampleMain />
|
|
);
|
|
}
|
|
}
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
justifyContent: 'center',
|
|
alignItems: 'center',
|
|
backgroundColor: 'white',
|
|
padding: 10
|
|
}
|
|
});
|
|
|
|
AppRegistry.registerComponent('Example', () => Example);
|