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 (