Skip to content

remobile/react-native-simple-button

master
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 
 
 
 
 

React Native Button (remobile)

A simple react-native button

Installation

npm install @remobile/react-native-simple-button --save

Usage

Example

{/*登录按钮*/}
<Button onPress={this.doLogin} style={{position: 'absolute', top: 320, left: 180, }} disable={true}>登录</Button>
{/*忘记密码按钮*/}
<Button onPress={this.doShowForgetPassword} style={{position: 'absolute', right: 5, bottom: 5, }} textStyle={{color:'red'}}>找回密码</Button>
{/*注册按钮*/}
<Button onPress={this.doShowRegister} style={{position: 'absolute', left: 5, bottom: 5, }}>注册</Button>

Screencasts

demo

Props

  • onPress: PropTypes.func
  • disabled: PropTypes.bool
  • textStyle: Text.propTypes.style
  • activeOpacity: PropTypes.number

About

A Simple react-native button

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published