slap-react-native-accordion

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

/slap-react-native-accordion/

    Package Sidebar

    Install

    npm i slap-react-native-accordion

    Weekly Downloads

    10

    Version

    3.0.4

    License

    none

    Unpacked Size

    87.7 kB

    Total Files

    32

    Last publish

    Collaborators

    • slapslap