
Security News
Open Source Maintainers Feeling the Weight of the EU’s Cyber Resilience Act
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
react-native-touchable-action
Advanced tools
A simple floating action button component for any React Native project using Expo
iOS | Android |
---|---|
npm install --save react-native-touchable-action
or
yarn add react-native-touchable-action
For a list of IconSources and iconNames, please refer to https://icons.expo.fyi
To position your floating action, use the React Native style prop
import FloatingActionButton from 'react-native-touchable-action';
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position='absolute',
bottom=75,
right=50,
}}
/>
type: String
IconSource='Ionicons'
type: String
iconName='rocket'
type: Object({Function})
onPress={() => {
console.log('You pressed the rocket button');
}
type: String - Default: #480ca8
buttonColor='#0F044C'
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
/>
type: String - Default: #6a4c93
ButtonColor | ButtonColorPressed |
buttonColorPressed='#693C72'
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
/>
type: Object({Number}) - Default: 65
Button Size 75 | Button Size 55 |
buttonSize={75}
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
buttonSize={75}
/>
type: Object({Number}) - Default: 40
Icon Size 50 | Icon Size 35 |
iconSize={35}
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
buttonSize={75}
iconSize={35}
/>
type: String - Default: #edf6f9
iconColor='#edf6f9'
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
buttonSize={75}
iconSize={35}
iconColor='#edf6f9'
/>
type: String - Default: #e2eafc
Icon color | Icon Color Pressed |
iconColorPressed='#c9ccd5'
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
buttonSize={75}
iconSize={35}
iconColor='#edf6f9'
iconColorPressed='#c9ccd5'
/>
type: Object({Boolean}) - Default: false
Shaded | Not Shaded |
shaded={true}
<FloatingActionButton
IconSource='Ionicons'
iconName='rocket'
onPress={() => {
console.log('You pressed the rocket button');
}}
style={{
position: 'absolute',
bottom: 75,
right: 50,
}}
buttonColor='#0F044C'
buttonColorPressed='#693C72'
buttonSize={75}
iconSize={35}
iconColor='#edf6f9'
iconColorPressed='#c9ccd5'
shaded={true}
/>
React Native Floating Action Button is under the MIT License. See bundled LICENSE file for details.
FAQs
A simple floating action button component for any React Native project using Expo
The npm package react-native-touchable-action receives a total of 80 weekly downloads. As such, react-native-touchable-action popularity was classified as not popular.
We found that react-native-touchable-action demonstrated a healthy version release cadence and project activity because the last version was released less than 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
The EU Cyber Resilience Act is prompting compliance requests that open source maintainers may not be obligated or equipped to handle.
Security News
Crates.io adds Trusted Publishing support, enabling secure GitHub Actions-based crate releases without long-lived API tokens.
Research
/Security News
Undocumented protestware found in 28 npm packages disrupts UI for Russian-language users visiting Russian and Belarusian domains.