import React, { Component} from 'react';
import { View, StyleSheet, Button, Text } from 'react-native';
import ComponentA from './components/componenta';
import ComponentB from './components/componentb';
import ComponentC from './components/componentc';
export default class App extends Component {
state = {
selectedTab: ''
}
setTab = (tab) => {
this.setState({selectedTab: tab});
}
selectTab = () => {
switch(this.state.selectedTab) {
case 'A':
return
case 'B':
return
case 'C':
return
default:
return
}
}
render() {
return (
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: 'skyblue',
alignItems: 'center',
justifyContent: 'center',
},
buttonBox: {
flex: 1,
width: '100%',
},
component: {
flex: 1,
}
});