@miidx/rn-floating-button

1.0.7 • Public • Published

rn-floating-button

Usage

    <FloatingButton
        iconName="share"
        onPress={somefunction}
        right={10}
        bottom={40}
        buttonColor="#00f"
        iconColor="#fff"
    />

Properties

Name Description Type Required Default value
iconName Icon name from react-native-vector-icons/MaterialCommunityIcons string plus
onPress Callback when the component is pressed function yes
right Spacing from right screen edge number 10
bottom Spacing from bottom screen edge number if iphoneX 80, otherwise 40
buttonColor Color of the button string #00f
iconColor Color of the button icon string #fff

Readme

Keywords

none

Package Sidebar

Install

npm i @miidx/rn-floating-button

Weekly Downloads

52

Version

1.0.7

License

ISC

Unpacked Size

4.2 kB

Total Files

6

Last publish

Collaborators

  • miidx