Security News
tea.xyz Spam Plagues npm and RubyGems Package Registries
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
@lucasmrc435/rn-fab
Advanced tools
Readme
React Native Floating Action Button
Using npm
npm install @lucasmrc435/rn-fab --save
Using yarn
yarn add @lucasmrc435/rn-fab
import FloatingActionButton from '@lucasmrc435/rn-fab'
<FloatingActionButton
color="orange"
onPress={() => {
console.log("FAB Pressed!");
}}
/>
import React from 'react';
import { View, Text } from 'react-native';
import FloatingActionButton from '@lucasmrc435/rn-fab'
const App = () => {
return (
<View>
<Text>Look at the FAB</Text>
<FloatingActionButton
color="orange"
onPress={() => {
console.log("FAB Pressed!");
}}
/>
<FloatingActionButton
position="center"
onPress={() => {
console.log("FAB Pressed!");
}}
/>
<FloatingActionButton
position="left"
icon="wallet"
onPress={() => {
console.log("FAB Pressed!");
}}
/>
<View>
);
}
Property | Type | Default | Description |
---|---|---|---|
color | String | #049bdb | FAB's Color |
position | String | right | FAB's position |
icon | String | plus | FAB's Icon |
iconColor | String | white | Icon's Color |
OnPress | Function | null | FAB's onPress function |
color
The color that will fill the FAB. Any color of StyleSheets and CSS
type : String
position
The FAB's position. Position can only be left
| center
| right
type : String
icon
The Icon that will appear inside the FAB. Any Icon from MaterialCommunityIcons
type : String
iconColor
The color that will fill the FAB's Icon
type : String
onPress
The function that is called when the button is activated.
type : Void Function
FAQs
Floating Action Button(FAB) for React Native
The npm package @lucasmrc435/rn-fab receives a total of 3 weekly downloads. As such, @lucasmrc435/rn-fab popularity was classified as not popular.
We found that @lucasmrc435/rn-fab 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
Tea.xyz, a crypto project aimed at rewarding open source contributions, is once again facing backlash due to an influx of spam packages flooding public package registries.
Security News
As cyber threats become more autonomous, AI-powered defenses are crucial for businesses to stay ahead of attackers who can exploit software vulnerabilities at scale.
Security News
UnitedHealth Group disclosed that the ransomware attack on Change Healthcare compromised protected health information for millions in the U.S., with estimated costs to the company expected to reach $1 billion.