Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
279daa4
commit c350330
Showing
9 changed files
with
221 additions
and
7 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,25 @@ | ||
import React from 'react'; | ||
import {createStackNavigator, createAppContainer} from 'react-navigation' | ||
import HomeScreen from './components/HomeScreen'; | ||
import PlayerScreen from './components/PlayerScreen' | ||
|
||
|
||
|
||
const rootStack = createStackNavigator({ | ||
Home: HomeScreen, | ||
Player: PlayerScreen | ||
},{ | ||
initalRouteName: 'Home' | ||
} | ||
) | ||
|
||
const AppContainer = createAppContainer(rootStack) | ||
|
||
|
||
export default class App extends React.Component { | ||
render() { | ||
return ( | ||
<HomeScreen/> | ||
<AppContainer/> | ||
); | ||
} | ||
} | ||
|
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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,3 +4,5 @@ module.exports = function(api) { | |
presets: ['babel-preset-expo'], | ||
}; | ||
}; | ||
|
||
|
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
import React from 'react' | ||
import {View, Text} from 'react-native' | ||
|
||
|
||
export default class PlayerScreen extends React.Component{ | ||
constructor(props){ | ||
super(props) | ||
var {navigation} = this.props | ||
this.state = { | ||
podID: navigation.getParam('pod', '0') | ||
} | ||
} | ||
|
||
|
||
render(){ | ||
return( | ||
<View style={ {flex: 1, justifyContent: 'center', alignItem:'center'} } > | ||
<Text>Detail Screen {this.state.podID} </Text> | ||
</View> | ||
) | ||
} | ||
|
||
componentWillUnmount(){ | ||
console.log("UnMounted") | ||
} | ||
|
||
} |
Empty file.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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