import React, { Component } from 'react';
import {
ScrollView,
TouchableOpacity,
StyleSheet,
Image,
Text,
View,
Platform,
ScrolView
} from 'react-native';
import { SharedElementTransition } from 'react-native-navigation';
import * as Animatable from 'react-native-animatable';
const SHOW_DURATION = 400;
const HIDE_DURATION = 300;
class InfoScreen extends Component {
constructor(props) {
super(props);
this.props.navigator.setOnNavigatorEvent(this.onNavigatorEvent.bind(this));
this.state = {
animationType: 'fadeInRight',
animationDuration: SHOW_DURATION
}
}
onNavigatorEvent(event) {
if (event.id === 'backPress') {
this.setState({
animationType: 'fadeOutRight',
animationDuration: HIDE_DURATION
});
this.props.navigator.pop();
}
}
render() {
return (
{this._renderImage()}
{this._renderContent()}
);
}
_renderImage() {
return (
);
}
_renderContent() {
return (
Line 1
Line 2
Line 3
Line 4
Line 5
Line 6
Line 7
Line 8
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1
},
content: {
flex: 1,
marginTop: 190,
backgroundColor: 'white'
},
imageContainer: {
position: 'absolute',
top: 0,
left: 0,
right: 0,
},
image: {
height: 190
},
text: {
fontSize: 17,
paddingVertical: 4,
paddingLeft: 8
}
});
export default InfoScreen;