Commit e00e4537 authored by Wahyu Adjie Prasetyo's avatar Wahyu Adjie Prasetyo
parents 34aef581 7badcbe9
...@@ -145,12 +145,7 @@ class Auth extends React.Component { ...@@ -145,12 +145,7 @@ class Auth extends React.Component {
<> <>
<Stack.Screen name="Login" component={Login} options={{ headerShown: false }} /> <Stack.Screen name="Login" component={Login} options={{ headerShown: false }} />
<Stack.Screen name="Login Welcome" component={WelcomeLog} options={{
headerShown: false,
}} />
<Stack.Screen name="Home" component={Home} /> <Stack.Screen name="Home" component={Home} />
<Stack.Screen name="Profile" component={ProfilePage} options={{ <Stack.Screen name="Profile" component={ProfilePage} options={{
headerStyle: { backgroundColor: '#CFB368' }, headerStyle: { backgroundColor: '#CFB368' },
headerTitleContainerStyle: { alignContent: 'center' }, headerTitleContainerStyle: { alignContent: 'center' },
...@@ -205,6 +200,9 @@ class Auth extends React.Component { ...@@ -205,6 +200,9 @@ class Auth extends React.Component {
</> </>
) : ( ) : (
<> <>
<Stack.Screen name="Login Welcome" component={WelcomeLog} options={{
headerShown: false,
}} />
<Stack.Screen name="Home" component={HomePage} <Stack.Screen name="Home" component={HomePage}
options={{ options={{
headerShown: false, headerShown: false,
......
...@@ -138,7 +138,7 @@ class Login extends React.Component { ...@@ -138,7 +138,7 @@ class Login extends React.Component {
index: 0, index: 0,
routes: [ routes: [
{ {
name: 'Home', name: 'LoginWelcome',
params: { someParam: 'Param1' }, params: { someParam: 'Param1' },
}, },
], ],
......
...@@ -6,7 +6,7 @@ export default class WelcomeLog extends React.Component { ...@@ -6,7 +6,7 @@ export default class WelcomeLog extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = ({ this.state = ({
spinner: '' spinner: false
}) })
} }
...@@ -38,7 +38,7 @@ export default class WelcomeLog extends React.Component { ...@@ -38,7 +38,7 @@ export default class WelcomeLog extends React.Component {
</View> </View>
<View style={styles.v_policy}> <View style={styles.v_policy}>
<View style={{ flex: 1, height: 50, marginRight: 70, marginLeft: 70, justifyContent: 'center' }}> <View style={{ flex: 1, height: 50, marginRight: 70, marginLeft: 70, justifyContent: 'center' }}>
<TouchableOpacity onPress={() => navigation.reset({ <TouchableOpacity onPress={() => this.props.navigation.reset({
index: 0, index: 0,
routes: [ routes: [
{ {
......
...@@ -7,7 +7,7 @@ export default class Welcome extends React.Component { ...@@ -7,7 +7,7 @@ export default class Welcome extends React.Component {
constructor(props) { constructor(props) {
super(props); super(props);
this.state = ({ this.state = ({
spinner: '' spinner: false
}) })
} }
...@@ -39,7 +39,14 @@ export default class Welcome extends React.Component { ...@@ -39,7 +39,14 @@ export default class Welcome extends React.Component {
</View> </View>
<View style={styles.v_policy}> <View style={styles.v_policy}>
<View style={{ flex: 1, height: 50, marginRight: 70, marginLeft: 70, justifyContent: 'center' }}> <View style={{ flex: 1, height: 50, marginRight: 70, marginLeft: 70, justifyContent: 'center' }}>
<TouchableOpacity onPress={()=> this.props.navigation.navigate('Login')}> <TouchableOpacity onPress={()=> this.props.navigation.reset({
index: 0,
routes: [
{
name: 'Login',
},
],
})}>
<View style={{ height: 50, borderRadius: 20, backgroundColor: '#CFB368' }}> <View style={{ height: 50, borderRadius: 20, backgroundColor: '#CFB368' }}>
<Text style={{ fontFamily: 'Gotham-Black', color: 'black', fontSize: 20, textAlign: 'center', margin: 15 }}>NEXT</Text> <Text style={{ fontFamily: 'Gotham-Black', color: 'black', fontSize: 20, textAlign: 'center', margin: 15 }}>NEXT</Text>
</View> </View>
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment