New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

react-native-modal-picker-x

Package Overview
Dependencies
Maintainers
1
Versions
22
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-modal-picker-x

A Modal Picker for React Native, rendering correctly on both iOS and Android.

latest
Source
npmnpm
Version
1.0.21
Version published
Maintainers
1
Created
Source

React Native Modal Picker X

Author: Alexandre Louisnard alouisnard@gmail.com
React Native JS NPM module
2019

DESCRIPTION

A Modal Picker for React Native, rendering correctly on both iOS and Android.

USAGE

Installation

npm install --save react-native-modal-picker-x

JSX

<ModalPicker
  items={[
    {
      label: 'A',
      value: 'A'
    },
    {
      label: 'B',
      value: 'B'
    },
    {
      label: 'C',
      value: 'C'
    }
  ]}
  selectedValue={this.state.pickerModalValue}
  onValueChange={({ label, value }) => {
    this.setState({ pickerModalValue: value });
    return true;
  }}
  iosModalButtonTitleStyle={{ color: 'blue' }}
  iosModalItemStyle={{ fontSize: 14, textAlign: 'left' }}
  iosOkButtonText={'OK'}
  iosCancelButtonText={'Annuler'} />

Props

type DataItem = { label: ?string, value: ?string };

type Props = {
  items: DataItem[],
  selectedValue?: ?string,
  onValueChange?: ?(item: DataItem) => boolean, // must return true to confirm the value change, false otherwise
  disabled?: boolean,
  containerStyle?: {},
  iosModalButtonStyle?: {},
  iosModalButtonTitleStyle?: {},
  iosModalItemStyle?: {},
  iosOkButtonText?: string,
  iosCancelButtonText?: string,
};

static defaultProps = {
  selectedValue: null,
  onValueChange: null,
  disabled: false,
  containerStyle: {},
  iosModalButtonStyle: {},
  iosModalButtonTitleStyle: {},
  iosModalItemStyle: {},
  iosOkButtonText: 'OK',
  iosCancelButtonText: 'CANCEL',
};

CHANGELOG

BACKLOG

Keywords

react

FAQs

Package last updated on 16 Sep 2020

Did you know?

Socket

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.

Install

Related posts