Skip to content

Osedea/react-native-plus-button-box

Repository files navigation

react-native-plus-button-box

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

Properties

Property Name Type
actions arrayOf(
{
key: string,
onPress: function,
text?: string
}
)
boxColor string
buttonColor string
underlayColor string

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

Closed Open

About

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

Resources

License

Stars

Watchers

Forks

Packages

No packages published