1.0.0 • Published 3 years ago

react-native-xbutton v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Features

1.Pure js solution. 2.Android and iOS both support. 3.Lots of options for button

Settings

NameDefaultTypeDescription
textStylenullObjectThe textStyle of the Button
stylenullObjectThe style of the Button
onPress{}FunctionTouch event of the Button
disabledfalseBoolForbidden touch event
text""StringThe text of the Button
activeOpacity0.7NumberThe opacity of the Button when was pressed
isLoadingfalseBoolThe loading animation of the Button when was pressed

Usage

import {React} from 'react';
import Button from 'react-native-button';

export default class Example extends React.Componment{
      render(){
      	return(
           <View>
             <Button text={"按钮"} styel={width:80,height:40,backgroundColor:'#'}/>
           </View>
      	)
      }
}