import React, { Component } from 'react'; import { View, Text } from 'react-native'; import { ProgressSteps, ProgressStep } from 'react-native-progress-steps'; class ExampleOne extends Component { static navigationOptions = { header: null }; defaultScrollViewProps = { keyboardShouldPersistTaps: 'handled', contentContainerStyle: { flex: 1, justifyContent: 'center' } }; onNextStep = () => { console.log('called next step'); }; onPaymentStepComplete = () => { alert('Payment step completed!'); }; onPrevStep = () => { console.log('called previous step'); }; onSubmitSteps = () => { console.log('called on submit step.'); }; render() { return ( Payment step content Shipping address step content Billing address step content Confirm order step content ); } } export default ExampleOne;