Security News
Research
Data Theft Repackaged: A Case Study in Malicious Wrapper Packages on npm
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
react-native-wheel-picker-android
Advanced tools
Simple Wheel Picker for Android to use with react-native
A simple Wheel Picker for Android (For IOs is used PickerIOS)
yarn add react-native-wheel-picker-android
import { WheelPicker } from 'react-native-wheel-picker-android'
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Button
} from 'react-native';
const wheelPickerData = ['sunday', 'monday', 'tuesday', 'wednesday', 'thursday', 'friday'];
class MyPicker extends Component {
state = {
selectedItem: 0,
}
onItemSelected = selectedItem => {
this.setState({ selectedItem })
}
onPress = () => {
this.setState({ selectedItem: 3 })
}
render() {
return (
<View style={styles.container}>
<Button title={'Select third element'} onPress={this.onPress}/>
<Text>Selected position: {this.state.selectedItem}</Text>
<WheelPicker
selectedItem={this.state.selectedItem}
data={wheelPickerData}
onItemSelected={this.onItemSelected}/>
</View>
);
}
}
module.exports = MyPicker;
Prop | Default | Type | Description |
---|---|---|---|
onItemSelected | - | func | Returns selected position |
data | - | Array<string> | Data array |
isCyclic | false | bool | Make Wheel Picker cyclic |
selectedItemTextColor | black | string | Wheel Picker's selected Item text color |
selectedItemTextSize | 16 | number | Wheel Picker's selected Item text size |
selectedItemTextFontFamily | - | font-family | Wheel Picker's selected Item font |
itemTextColor | grey | string | Wheel Picker's Item Text Color |
itemTextSize | 16 | number | Wheel Picker's Item text size |
itemTextFontFamily | - | font-family | Wheel Picker's Item font |
selectedItem | 0 | number | Current item position |
indicatorColor | black | string | Indicator color |
hideIndicator | - | func | Hide indicator |
indicatorWidth | 1 | number | Indicator width |
backgroundColor | transparent | string | Wheel Picker background color |
Feel free to open an issue
FAQs
Simple Wheel Picker for Android to use with react-native
The npm package react-native-wheel-picker-android receives a total of 5,585 weekly downloads. As such, react-native-wheel-picker-android popularity was classified as popular.
We found that react-native-wheel-picker-android demonstrated a not healthy version release cadence and project activity because the last version was released 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
Research
The Socket Research Team breaks down a malicious wrapper package that uses obfuscation to harvest credentials and exfiltrate sensitive data.
Research
Security News
Attackers used a malicious npm package typosquatting a popular ESLint plugin to steal sensitive data, execute commands, and exploit developer systems.
Security News
The Ultralytics' PyPI Package was compromised four times in one weekend through GitHub Actions cache poisoning and failure to rotate previously compromised API tokens.