slap-ddp
v1.0.7
Published
``` / $ metoer npm install / $ metoer ```
Downloads
6
Readme
Bootstrapping
/ $ metoer npm install
/ $ metoer
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>
);
}
}