
Security News
Axios Supply Chain Attack Reaches OpenAI macOS Signing Pipeline, Forces Certificate Rotation
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.
react-native-menu-list
Advanced tools
an alternative to react-native Picker component, cross-platform, iOS style menu for react-native.

npm install --save react-native-menu-list
| Prop | Optional | Default | Description | |
|---|---|---|---|---|
data | No | [] | array of items to be shown in menu list | |
onChange | Yes | () => {} | callback function, when the users has selected an option | |
keyExtractor | Yes | (data) => data.key | ||
labelExtractor | Yes | (data) => data.label | ||
firstTitleText | Yes | Tap Top Open! | text that is shown on the button before selection | |
style | Yes | style | style of main container | |
itemButtonStyle | Yes | style | . | |
itemButtonTextStyle | Yes | style | . | |
itemStyle | Yes | style | . | |
itemTextStyle | Yes | style | . | |
itemContainerStyle | Yes | style | . | |
childrenViewStyle | Yes | style | . | |
openButtonStyle | Yes | style | . | |
closeContainerStyle | Yes | style | . | |
closeStyle | Yes | style | . | |
closeTextStyle | Yes | style | . | |
closeText | Yes | Close | text of the close button. | |
disabled | Yes | false | menu is not able to show up if disabled is set to true. | |
selectedKey | Yes | '' | Key of item to be selected on start up |
export default class App extends React.Component {
data = [
{ id: 0, name: "item 1" },
{ id: 1, name: "item 2" },
{ id: 0, name: "item 3" },
{ id: 1, name: "item 4" },
{ id: 0, name: "item 5" },
{ id: 1, name: "item 6" }
];
data2 = [
{ number: 0, label: "item 1" },
{ number: 1, label: "item 2" },
{ number: 0, label: "item 3" },
{ number: 1, label: "item 4" },
{ number: 0, label: "item 5" },
{ number: 1, label: "item 6" }
];
render() {
return (
<View>
<MenuList
data={this.data}
/>
<MenuList
data={this.data2}
keyExtractor={item => item.number}
labelExtractor={item => item.label}
/>
</View>
);
}
}
FAQs
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
OpenAI rotated macOS signing certificates after a malicious Axios package reached its CI pipeline in a broader software supply chain attack.

Security News
Open source is under attack because of how much value it creates. It has been the foundation of every major software innovation for the last three decades. This is not the time to walk away from it.

Security News
Socket CEO Feross Aboukhadijeh breaks down how North Korea hijacked Axios and what it means for the future of software supply chain security.