1.5.0 • Published 4 months ago

react-native-ripple-btn v1.5.0

Weekly downloads
-
License
ISC
Repository
github
Last release
4 months ago

This is a custom button with ripple effect. My build versions: 1- react-native-gesture-handler: 2.9.0 2- react-native-reanimated: 2.14.4

Installation

  npm install react-native-ripple-btn

Doc

react-native-reanimated

react-native-gesture-handler

Usage

    //App.js
    import { GestureHandlerRootView } from "react-native-gesture-handler";

    <GestureHandlerRootView style={{flex: 1}}>
      //Your codes in here
    </GestureHandlerRootView>

    //Usage in screen
    import RippleButton from "react-native-ripple-btn";

    <RippleButton
      duration={800}
      opacity={0.8}
      opacityColor={'white'}
      width={'70%'}
      height={50}
      text={'Button text'}
      textSize={20}
      textColor={'white'}
      bgColor={'purple'}
      borderRadius={10}
      onPress={onPress}
    />

API

proptypedescriptiondefault
durationNumberDuration in ms.800
opacityNumberRipple effect opacity.0.8
opacityColorStringRipple effect color."white"
widthStringButton width."70%"
heightNumberButton height.50
textStringButton text."Text"
textSizeNumberButton textSize.20
textColorStringButton textColor."white"
borderRadiusNumberButton borderRadius.10
bgColorStringButton backgroundColor."purple"
onPressFuncButton func.null
1.5.0

4 months ago

1.4.1

7 months ago

1.4.0

9 months ago

1.3.1

9 months ago

1.3.0

9 months ago

1.2.0

10 months ago

1.1.0

10 months ago

1.0.0

10 months ago