This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: TabRoot.tsx | |
} /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: TabRoot.tsx | |
<IonRouterOutlet> | |
<Route path="/:tab(tab1)" component={Tab1} exact={true} /> | |
<Route path="/:tab(tab2)" component={Tab2} /> | |
<Route path="/" render={() => <Redirect to="/tab1" />} /> | |
</IonRouterOutlet> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: Tab.tsx | |
{ | |
e.preventDefault(); | |
props.history.push("/tab1-detail"); | |
}} | |
> NEXT PAGE |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: Tab1Detail.tsx | |
import React from 'react'; | |
import { IonHeader, IonToolbar, IonTitle, IonContent } from '@ionic/react'; | |
const Tab1Detail: React.SFC = () => { | |
return ( | |
<> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: Tab1Detail.tsx | |
props.history.replace("/tab1")} | |
goBack={() => {}} | |
/> | |
Tab One Detail |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: App.tsx | |
} /> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: Tab1.tsx | |
const Tab1: React.SFC = (props) => { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: App.tsx | |
const App: React.SFC = () => ( | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: App.tsx | |
const App: React.SFC = () => ( | |
} /> | |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// FILE: TabRoot.tsx | |
interface IAppProps {} | |
const TabRoot: React.FC = props => { | |
return ( | |