Skip to content

Commit

Permalink
Merge pull request leecade#737 from MaffooBristol/patch-1
Browse files Browse the repository at this point in the history
Rename component in README example code
  • Loading branch information
ArrayZoneYour authored Jun 26, 2019
2 parents 5e4c985 + 4a13acf commit e2f8d9e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -158,8 +158,8 @@ const styles = StyleSheet.create({
}
})

export default class Swiper extends Component {
render() {
export default class SwiperComponent extends Component {
render(){
return (
<Swiper style={styles.wrapper} showsButtons={true}>
<View style={styles.slide1}>
Expand All @@ -176,7 +176,7 @@ export default class Swiper extends Component {
}
}

AppRegistry.registerComponent('myproject', () => Swiper)
AppRegistry.registerComponent('myproject', () => SwiperComponent);
```

### Properties
Expand Down

0 comments on commit e2f8d9e

Please sign in to comment.