import React from 'react'; import { View } from 'react-native'; import { RkStyleSheet } from 'react-native-ui-kitten'; import { GradientButton, PaginationIndicator, } from '../../components/'; import { Walkthrough } from '../../components/walkthrough'; import { Walkthrough1 } from './walkthrough1'; import { Walkthrough2 } from './walkthrough2'; import NavigationType from '../../config/navigation/propTypes'; export class WalkthroughScreen extends React.Component { static propTypes = { navigation: NavigationType.isRequired, }; static navigationOptions = { header: null, }; state = { index: 0, }; onWalkThroughIndexChanged = (index) => { this.setState({ index }); }; onStartButtonPressed = () => { this.props.navigation.navigate('Articles2'); }; render = () => ( ) } const styles = RkStyleSheet.create(theme => ({ screen: { backgroundColor: theme.colors.screen.base, paddingVertical: 28, alignItems: 'center', flex: 1, }, button: { marginTop: 25, marginHorizontal: 16, }, }));