Skip to content

Commit

Permalink
update example with render usage
Browse files Browse the repository at this point in the history
  • Loading branch information
testshallpass committed Feb 8, 2018
1 parent 2b91507 commit 63bdc08
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions Example/Main.js
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ export default class main extends Component {
</TouchableOpacity>
);
}
renderImage(props) {
return (
<Image style={props.imageStyle} source={{ uri: props.imageSrc }} />
);
}
render() {
return (
<View style={styles.container}>
Expand All @@ -48,6 +53,8 @@ export default class main extends Component {
onClose={data => this.handleClose(data)}
onCancel={data => this.handleCancel(data)}
imageSrc={'https://facebook.github.io/react-native/docs/assets/favicon.png'}
renderImage={(props) => this.renderImage(props)}
renderCancel={(props) => this.renderImage(props)}
/>
</View>
);
Expand Down

0 comments on commit 63bdc08

Please sign in to comment.