1.1.0 • Published 5 years ago

react-native-plus-button-box v1.1.0

Weekly downloads
7
License
MIT
Repository
github
Last release
5 years ago

react-native-plus-button-box

A component to display an Android-like "+" button and display action items

Properties

Property NameType
actionsarrayOf( { key: string, onPress: function, text?: string } )
boxColorstring
buttonColorstring
underlayColorstring

Usage

import CallToActionBox from 'react-native-plus-button-box';

class MyComp extends Component {
    render() {
        return (
            <CallToActionBox
                actions={[
                    {
                        key: 'test',
                        text: 'Test me',
                        onPress: () => Alert.alert('Hello')
                    },
                    {
                        key: 'test2',
                        text: 'Test me again',
                        onPress: () => Alert.alert('Hello to you too')
                    }
                ]}
            />
        );
    }
}

Result

npm.io

ClosedOpen
npm.ionpm.io