
Security News
Crates.io Users Targeted by Phishing Emails
The Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
@rn-common/action-sheet
Advanced tools
This library provides a cross-platform action sheet component for React Native, leveraging native `ActionSheetIOS` for iOS and a custom bottom sheet for other platforms.
@rn-common/action-sheet
This library provides a cross-platform action sheet component for React Native, leveraging native ActionSheetIOS
for iOS and a custom bottom sheet for other platforms.
Install using npm:
npm install @rn-common/action-sheet
or yarn:
yarn add @rn-common/action-sheet
To display an action sheet, use the showActionSheet
function:
import { showActionSheet } from '@rn-common/action-sheet'
const actionSheet = {
title: 'Title',
message: 'Message',
buttons: [
{ text: 'Option 1', onPress: () => console.log('Option 1 selected') },
{ text: 'Option 2', onPress: () => console.log('Option 2 selected') },
{
text: 'Cancel',
onPress: () => console.log('Cancel selected'),
type: 'cancel',
},
],
}
showActionSheet(actionSheet)
showActionSheet
FunctionThe showActionSheet
function takes an ActionSheet
object with the following structure:
title
(optional): A title for the action sheet.message
(optional): A message displayed below the title.buttons
: An array of buttons, each with a text
, onPress
, and an optional type
('default', 'cancel', 'destructive').FAQs
This library provides a cross-platform action sheet component for React Native, leveraging native `ActionSheetIOS` for iOS and a custom bottom sheet for other platforms.
The npm package @rn-common/action-sheet receives a total of 6 weekly downloads. As such, @rn-common/action-sheet popularity was classified as not popular.
We found that @rn-common/action-sheet 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 Rust Security Response WG is warning of phishing emails from rustfoundation.dev targeting crates.io users.
Product
Socket now lets you customize pull request alert headers, helping security teams share clear guidance right in PRs to speed reviews and reduce back-and-forth.
Product
Socket's Rust support is moving to Beta: all users can scan Cargo projects and generate SBOMs, including Cargo.toml-only crates, with Rust-aware supply chain checks.