Miss any of our Open RFC calls?Watch the recordings here! »

slap-react-native-toggle

3.0.10 • 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>
    );
  }
}

Keywords

none

Install

npm i slap-react-native-toggle

DownloadsWeekly Downloads

4

Version

3.0.10

License

none

Unpacked Size

87.6 kB

Total Files

32

Last publish

Collaborators

  • avatar