Skip to content

Commit

Permalink
Switch to a component that depends on react-native.
Browse files Browse the repository at this point in the history
This triggers the bug being investigated at facebook/react-native#10882.
  • Loading branch information
artdent committed Nov 22, 2016
1 parent 886d36b commit ca3d9e8
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions index.ios.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,16 +7,25 @@
import React, { Component } from 'react';
import {
AppRegistry,
TouchableOpacity,
Text,
View
} from 'react-native';

import Carousel from 'react-native-snap-carousel';
import Toast from 'react-native-easy-toast';

export default class NpmLinkDemo extends Component {

render() {
return (
<Carousel />
<View>
<TouchableOpacity
style={{padding: 40}}
onPress={() => this.refs.toast.show('Hello, world!')}>
<Text>Tap me</Text>
</TouchableOpacity>
<Toast ref="toast"/>
</View>
);
}
}
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
"dependencies": {
"react": "~15.3.1",
"react-native": "0.37.0",
"react-native-snap-carousel": "^1.2.1"
"react-native-easy-toast": "https://github.com/artdent/react-native-easy-toast"
},
"devDependencies": {
"babel-jest": "17.0.0",
Expand Down

0 comments on commit ca3d9e8

Please sign in to comment.