2.0.0 • Published 8 years ago

react-native-simple-warn v2.0.0

Weekly downloads
2
License
MIT
Repository
github
Last release
8 years ago

react-native-simple-warn

Simple warn for React Native that appears with a slide down effect.

Usage

// ...
import Warn from 'react-native-simple-warn';

export default class Something extends {
  _show(){
    this.refs.warn.appear();
  }

  _hide(){
    this.refs.warn.disappear();
  }

  render(){
    return (
      <View>
        <Warn
          ref="warn"
          message={'You know nothing, Jon Snow'}
          style={someAdditionalStyle}
        />
        <Button onPress={this._show.bind(this)}>Click me</Button>
        <Button onPress={this._hide.bind(this)}>Click me also</Button>
      </View>
    );  
  },  
}