3.0.4 • Published 6 years ago

slap-react-native-accordion v3.0.4

Weekly downloads
85
License
-
Repository
-
Last release
6 years ago

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

6 years ago

3.0.3

6 years ago

3.0.2

6 years ago

3.0.1

6 years ago

3.0.0

6 years ago

2.0.7

6 years ago

2.0.6

6 years ago

2.0.5

6 years ago

2.0.4

6 years ago

2.0.3

6 years ago

2.0.2

6 years ago

2.0.1

6 years ago

2.0.0

6 years ago

1.0.8

6 years ago

1.0.7

6 years ago

1.0.5

6 years ago

1.0.4

6 years ago

1.0.3

7 years ago

1.0.2

7 years ago

1.0.1

7 years ago

1.0.0

7 years ago