Security News
New Proposed CISA Mandate Would Require Critical Infrastructure to Report Ransom Payments Within 24 Hours
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
react-native-action-floating-button
Advanced tools
A simple floating button for react native with nested button
Weekly downloads
Readme
import {
FloatingButton,
FloatingButtonChild,
} from "react-native-action-floating-button";
const Floating = () => (
<FloatingButton
hasChildren={false}
icon={<Text>{/*Here your Icon*/}</Text>}
background="blue"
onPress={() => foo()}
/>
);
import {
FloatingButton,
FloatingButtonChild,
} from "react-native-action-floating-button";
const Floating = () => (
<FloatingButton
hasChildren={true}
icon={<Text>{/*Here your Icon*/}</Text>}
backgroundColor="blue"
>
<FloatingButtonChild backgroundColor="blue" title="Tooltip message">
<Text>{/*Here your Icon*/}</Text>
</FloatingButtonChild>
</FloatingButton>
);
Options | Default | Value | How To use |
---|---|---|---|
backgroundColor | red | rgb or hex | Use to change the color of the button |
hasChildren | true | true, false | If true instead of using onPress it opens the floatingButtonChild |
onPress | none | method | Use to change the behavior when it's pressed with hasChildren on false. |
icon | none | Text | Use to display some text or icon |
padding | 10 | Number | Use to add padding |
alignItems | flex-end | flex-start,center,flex-end | Use to choose where you want to put the button |
[children] | none | Create the FloatingButtonChild as children of a FloatingButton | |
shadow | none | css style | Use to set the shadow of the button |
Options | Default | Value | How To use |
---|---|---|---|
backgroundColor | red | rgb or hex | Use to change the color of the button |
title | none | string | Use to change the tooltip |
[children] | none | Use to change the icon or text of the button | |
shadow | none | css style | Use to set the shadow of the button |
flexDirection | row | row, row-reverse | Set to row-reverse to reverse the button and tooltip position |
-Shadow Box during the fade in
FAQs
A simple floating button for react native with nested button
The npm package react-native-action-floating-button receives a total of 6 weekly downloads. As such, react-native-action-floating-button popularity was classified as not popular.
We found that react-native-action-floating-button demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
CISA has proposed a set of new rules that would require critical infrastructure to report cyber incidents and ransom payments.
Security News
Redis is no longer OSS, breaking its explicit commitment to remain under the BSD 3-Clause License forever. This has angered contributors who are now working to fork the software.
Product
Socket AI now enables 'AI detected potential malware' alerts by default, ensuring users benefit from AI-powered state-of-the-art malware detection without needing to opt-in.