Gathering detailed insights and metrics for react-native-action-sheet
Gathering detailed insights and metrics for react-native-action-sheet
Gathering detailed insights and metrics for react-native-action-sheet
Gathering detailed insights and metrics for react-native-action-sheet
@expo/react-native-action-sheet
A cross-platform ActionSheet for React Native
react-native-actions-sheet
A Cross Platform(Android & iOS) ActionSheet with a robust and flexible api, native performance and zero dependency code for react native. Create anything you want inside ActionSheet.
react-native-raw-bottom-sheet
Add Your Own Component To Bottom Sheet Whatever You Want (Android & iOS)
@exponent/react-native-action-sheet
A cross-platform ActionSheet for React Native
React native simple action sheet with native android (using the built-in AlertDialog)
npm install react-native-action-sheet
Typescript
Module System
Node Version
NPM Version
Java (41.61%)
Objective-C (30.55%)
JavaScript (14.33%)
Starlark (13.51%)
Total Downloads
0
Last Day
0
Last Week
0
Last Month
0
Last Year
0
MIT License
183 Stars
74 Commits
52 Forks
5 Watchers
12 Branches
12 Contributors
Updated on Oct 10, 2024
Latest Version
2.2.0
Package Id
react-native-action-sheet@2.2.0
Unpacked Size
233.41 kB
Size
139.13 kB
File Count
61
NPM Version
6.5.0
Node Version
11.7.0
Cumulative downloads
Total Downloads
Last Day
0%
NaN
Compared to previous day
Last Week
0%
NaN
Compared to previous week
Last Month
0%
NaN
Compared to previous month
Last Year
0%
NaN
Compared to previous year
No dependencies detected.
React native action sheet with native android (using the built-in AlertDialog)
This module simply return the ActionSheetIOS if the device on iOS
iOS | Android |
---|---|
![]() | ![]() |
npm install react-native-action-sheet@latest --save
react-native link react-native-action-sheet
npm install @yfuks/react-native-action-sheet@0.0.3 --save
react-native link @yfuks/react-native-action-sheet
The react-native link
command above should do everything you need, but if for some reason it does not work, you can replicate its effects manually by making the following changes.
1// file: android/settings.gradle 2... 3 4include ':react-native-action-sheet' 5project(':react-native-action-sheet').projectDir = new File(settingsDir, '../node_modules/react-native-action-sheet/android')
1// file: android/app/build.gradle 2... 3 4dependencies { 5 ... 6 compile project(':react-native-action-sheet') 7}
1// file: android/app/src/main/java/com/<...>/MainApplication.java 2... 3 4import com.actionsheet.ActionSheetPackage; // <-- add this import 5 6public class MainApplication extends Application implements ReactApplication { 7 @Override 8 protected List<ReactPackage> getPackages() { 9 return Arrays.<ReactPackage>asList( 10 new MainReactPackage(), 11 new ActionSheetPackage() // <-- add this line 12 ); 13 } 14... 15} 16
You can change the style of the dialog by editing nodes_modules/react-native-action-sheet/android/src/main/res/values/style.xml
1import ActionSheet from 'react-native-action-sheet'; 2import { Platform } from 'react-native'; 3 4var BUTTONSiOS = [ 5 'Option 0', 6 'Option 1', 7 'Option 2', 8 'Delete', 9 'Cancel' 10]; 11 12var BUTTONSandroid = [ 13 'Option 0', 14 'Option 1', 15 'Option 2' 16]; 17 18var DESTRUCTIVE_INDEX = 3; 19var CANCEL_INDEX = 4; 20 21ActionSheet.showActionSheetWithOptions({ 22 options: (Platform.OS == 'ios') ? BUTTONSiOS : BUTTONSandroid, 23 cancelButtonIndex: CANCEL_INDEX, 24 destructiveButtonIndex: DESTRUCTIVE_INDEX, 25 tintColor: 'blue' 26}, 27(buttonIndex) => { 28 console.log('button clicked :', buttonIndex); 29});
For the iOS implementation see ActionSheetIOS
1/** 2 * Display the native action sheet 3 */ 4 5static showActionSheetWithOptions(options, callback);
@note: on Android in case of a touch outside the ActionSheet or the button back is pressed the buttonIndex value is 'undefined'
option | iOS | Android | Info |
---|---|---|---|
options | OK | OK | (array of strings) - a list of button titles (required on iOS) |
cancelButtonIndex | OK | - | (int) - index of cancel button in options (useless in android since we have back button) |
destructiveButtonIndex | OK | - | (int) - index of destructive button in options (same as above) |
title | OK | OK | (string) - a title to show above the action sheet |
message | OK | - | (string) - a message to show below the title |
tintColor | OK | - | (string) - a color to set to the text (defined by processColor) |
No vulnerabilities found.
Reason
license file detected
Details
Reason
binaries present in source code
Details
Reason
Found 5/7 approved changesets -- score normalized to 7
Reason
0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0
Reason
no effort to earn an OpenSSF best practices badge detected
Reason
project is not fuzzed
Details
Reason
security policy file not detected
Details
Reason
branch protection not enabled on development/release branches
Details
Reason
SAST tool is not run on all commits -- score normalized to 0
Details
Reason
71 existing vulnerabilities detected
Details
Score
Last Scanned on 2025-06-30
The Open Source Security Foundation is a cross-industry collaboration to improve the security of open source software (OSS). The Scorecard provides security health metrics for open source projects.
Learn More