You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Hi,
If you have 3 screen, when you arrive on the third screen and go back on the second screen the touch is disabled, all the app is blocked, this is the example code:
import React, { Component } from 'react';
import { Text, View, Button, Image, StyleSheet } from 'react-native';
import { FluidNavigator, Transition } from 'react-navigation-fluid-transitions';
const LogoImage = props => (
<Image source={{uri:'https://picsum.photos/100/100?image=56'}} style={props.style}/>
);
class Screen1 extends React.Component {
render() {
return (
<View style={styles.container}>
<Transition shared="logo">
<LogoImage style={styles.largeLogo}/>
</Transition>
<Transition appear="horizontal">
<Text style={styles.paragraph}>
Welcome to this fantastic app!
</Text>
</Transition>
<Transition appear="horizontal">
<Button title="Next" onPress={() => this.props.navigation.navigate("screen2")} />
</Transition>
</View>
);
}
}
class Screen2 extends React.Component {
render() {
return (
<View style={styles.container}>
<Transition shared="logo">
<LogoImage style={styles.smallLogo}/>
</Transition>
<Transition appear="horizontal">
<Text style={styles.paragraph}>
<Text style={{fontWeight:'normal'}}>
Now you should have a basic understanding of how this app works.
Please sign up and take part in this fantastic user experience!
</Text>
</Text>
</Transition>
<Transition appear="horizontal">
<Text style={styles.paragraph}>
This is the last page of the onboarding.
</Text>
</Transition>
<Transition appear="horizontal">
<Button title="Back" onPress={() => this.props.navigation.navigate("screen3")} />
</Transition>
</View>
);
}
}
class Screen3 extends React.Component {
render() {
return (
<View style={styles.container}>
<Transition shared="logo">
<LogoImage style={styles.smallLogo}/>
</Transition>
<Transition appear="horizontal">
<Text style={styles.paragraph}>
<Text style={{fontWeight:'normal'}}>
aaaaaaa
</Text>
</Text>
</Transition>
<Transition appear="horizontal">
<Text style={styles.paragraph}>
bbbbb
</Text>
</Transition>
<Transition appear="horizontal">
<Button title="Back" onPress={() => this.props.navigation.goBack()} />
</Transition>
</View>
);
}
}
export default Navigator = FluidNavigator({
screen1: {screen: Screen1},
screen2: {screen: Screen2},
screen3: {screen: Screen3}
});
const styles = StyleSheet.create({
container: {
flex: 1,
alignItems: 'center',
justifyContent: 'space-around',
backgroundColor: '#ecf0f1',
},
largeLogo: {
width: 200,
height: 200,
borderRadius: 100,
},
smallLogo: {
width: 80,
height: 80,
borderRadius: 40,
},
paragraph: {
margin: 24,
fontSize: 15,
fontWeight: 'bold',
textAlign: 'center',
color: '#34495e',
},
});
The text was updated successfully, but these errors were encountered:
Hi,
If you have 3 screen, when you arrive on the third screen and go back on the second screen the touch is disabled, all the app is blocked, this is the example code:
The text was updated successfully, but these errors were encountered: