0.0.10 • Published 2 years ago

react-native-component-button v0.0.10

Weekly downloads
-
License
UNLICENSED
Repository
-
Last release
2 years ago

react-native-component - Button

Getting Started

npm install react-native-component-button

Key Features

Pressable Native Button types:

  • Primary Button
  • Secondary Button
  • Outline Button
  • Disable Button
  • Arrow Button
  • Left Icon Button
  • Override Styule Button
  • Circle Button
  • Circle Button

Button props

AttributeTypeDefault
labelstring
buttonColorstring
textColorstring
circleboolfalse
typestringprimary|secondary|outline|circle
disabledboolfalse
arrowboolfalse
fullboolfalse
leftIconFontAwesome.glyphMapfalse
styleStylePropsnull
onPressfunctionnull

Button basic example for React Native App

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

<Button 
    label={"Sign In"} 
    arrow={true}
    style={{marginRight:20}}
    onPress={() => navigation.navigate('goThisPage')}/>

<Button 
    leftIcon={"font-awesome"}
    label={"Create Account"} 
    onPress={() => navigation.navigate('goThisPage')}/>
</View>

Author

Josef Cheung

0.0.10

2 years ago

0.0.9

2 years ago

0.0.8

2 years ago

0.0.7

2 years ago

0.0.6

2 years ago

0.0.5

2 years ago

0.0.4

2 years ago

0.0.3

2 years ago

0.0.2

2 years ago

0.0.1

2 years ago