()
| 2 | import { Router, Route, Link } from "./react-router"; |
| 3 | |
| 4 | const Home = () => <Text>Home</Text>; |
| 5 | |
| 6 | const About = () => <Text>About</Text>; |
| 7 | |
| 8 | const App = () => ( |
| 9 | <Router> |
| 10 | <View style={styles.container}> |
| 11 | <View style={styles.nav}> |
| 12 | <Link to="/"> |
| 13 | <Text>Home</Text> |
| 14 | </Link> |
| 15 | <Link to="/about"> |
| 16 | <Text>About</Text> |
| 17 | </Link> |
| 18 | </View> |
| 19 | |
| 20 | <Route exact path="/" component={Home} /> |
| 21 | <Route path="/about" component={About} /> |
| 22 | </View> |
| 23 | </Router> |
| 24 | ); |
| 25 | |
| 26 | const styles = StyleSheet.create({ |
| 27 | container: { |
nothing calls this directly
no outgoing calls
no test coverage detected