slap-react-native-parallax-item
3.0.2 • Public • Published bootstrap
$ npm install
$ react-native run-android
$ react-native run-ios
test
npm test
component style guide
export default class MyComponent extends Compoent {
static propTypes = {
text: PropTypes.string
};
static defaultProps = {
text: 'text'
};
state = {
clickNumber: 0
};
animatedValue = new Animated.Value(0);
componentDidMount() {
}
onPress = () => {
this.setState((previousState) => {
return {
clickNumber: previousState.clickNumber + 1
};
});
};
render() {
return (
<View>
<Text onPress={this.onPress}>{ this.props.text }</Text>
</View>
);
}
}
Versions
Version | Downloads (Last 7 Days) | Tag |
---|
3.0.2 | 1 | latest |
Version History
Package Sidebar
Install
npm i slap-react-native-parallax-item
Weekly Downloads