Add the dependency:
npm i @paraboly/react-native-bouncy-circle-button
"react-native-androw": "=> 0.0.34",
"@freakycoder/react-native-bounceable": ">= 0.2.0"
import BouncyCircleButton from "@paraboly/react-native-bouncy-circle-button";
<BouncyCircleButton onPress={() => {}}>
<AnyComponent />
</BouncyCircleButton>
Property | Type | Default | Description |
---|---|---|---|
onPress | function | undefined | set your onPress functionality |
children | component | undefined | set the inside BouncyCircleButton's children component |
size | number | 50 | change the size of the button |
backgroundColor | color | #fff | change the background of the button |
shadowStyle | style | default | change the shadow style of the button |
-
LICENSE
FreakyCoder, [email protected]
React Native Bouncy Circle Button is available under the MIT license. See the LICENSE file for more info.