Research
Security News
Threat Actor Exposes Playbook for Exploiting npm to Build Blockchain-Powered Botnets
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
@flockcover/react-native-chooser
Advanced tools
Simple Cross platform SELECT tag for React-Native
The original of this package was here: https://github.com/gs-akhan/react-native-chooser However, it was no longer maintained, and we needed this bug: https://github.com/gs-akhan/react-native-chooser/issues/43 fixed for react native 0.57.1 support
Simple DropDown menu for React Native App! Your Select Tag for React Native. Fully Customizable too.
React Native Chooser is simple, customizable and easy to use dropdown in React Native. It has been tested on both Android and IOS and works like a charm.
npm i react-native-chooser --save
import React, { Component } from 'react';
import {Select, Option} from "react-native-chooser";
import {
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
export default class AwesomeProject extends Component {
constructor(props) {
super(props);
this.state = {value : "Select Me Please"}
}
onSelect(value, label) {
this.setState({value : value});
}
render() {
return (
<View style={styles.container}>
<Select
onSelect = {this.onSelect.bind(this)}
defaultText = {this.state.value}
style = {{borderWidth : 1, borderColor : "green"}}
textStyle = {{}}
backdropStyle = {{backgroundColor : "#d3d5d6"}}
optionListStyle = {{backgroundColor : "#F5FCFF"}}
>
<Option value = {{name : "azhar"}}>Azhar</Option>
<Option value = "johnceena">Johnceena</Option>
<Option value = "undertaker">Undertaker</Option>
<Option value = "Daniel">Daniel</Option>
<Option value = "Roman">Roman</Option>
<Option value = "Stonecold">Stonecold</Option>
<Option value = "Rock">Rock</Option>
<Option value = "Sheild">Sheild</Option>
<Option value = "Orton">Orton</Option>
</Select>
</View>
);
}
}
Prop Name | Data Type | Default Values | Description |
---|---|---|---|
onSelect | function | null | function that executes on selection of an option |
defaultText | string | Click To Select | Text to show as default text |
style | object | null | To style the select box. |
backdropStyle | object | null | To style the overlay |
textStyle | object | null | To style the text shown in the box |
optionListStyle | object | null | To style the selection box |
transparent | boolean | false | To set the transparent prop on Modal |
animationType | string | "none" | To set the animationType prop on Modal |
indicator | string | "none", "up" or "down" | "none" |
indicatorColor | string | "black" | The color of the indicator arrow |
indicatorSize | number | 10 | The size of the indicator arrow |
indicatorStyle | object | null | To style the indicator arrow |
indicatorIcon | react element | null | Show the indicator icon |
selected | string | null | Give it same value as you give to Option |
selectedStyle | object | null | Apply styles to the selected Option |
Function Name | Description |
---|---|
setSelectedText(text) | Set default text in the select option, often used to reset text. |
Prop Name | Data Type | Default Values | Description |
---|---|---|---|
style | object | null | To style each option |
styleText | object | null | To style the text shown in the option |
Your contributions and suggestions are heartily♡ welcome. (✿◠‿◠)
FAQs
Simple Cross platform SELECT tag for React-Native
The npm package @flockcover/react-native-chooser receives a total of 0 weekly downloads. As such, @flockcover/react-native-chooser popularity was classified as not popular.
We found that @flockcover/react-native-chooser demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 6 open source maintainers 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.
Research
Security News
A threat actor's playbook for exploiting the npm ecosystem was exposed on the dark web, detailing how to build a blockchain-powered botnet.
Security News
NVD’s backlog surpasses 20,000 CVEs as analysis slows and NIST announces new system updates to address ongoing delays.
Security News
Research
A malicious npm package disguised as a WhatsApp client is exploiting authentication flows with a remote kill switch to exfiltrate data and destroy files.