Neptunian Parity Mnemonic

    react-native-bpk-component-select

    5.0.1 • Public • Published

    react-native-bpk-component-select

    Backpack React Native select component.

    Installation

    npm install react-native-bpk-component-select --save-dev

    Usage

    import React from 'react';
    import { View, StyleSheet } from 'react-native';
    import { spacingBase } from 'bpk-tokens/tokens/base.react.native';
    import BpkSelect from 'react-native-bpk-component-select';
     
    const styles = StyleSheet.create({
      container: {
        flex: 1,
        justifyContent: 'center',
        padding: spacingBase,
      }
    });
     
    export default () => (
      <View styles={styles.container>
        <BpkSelect
          onPress={openSelectUI}
          label="Select an Option"
        />
        <BpkSelect
          onPress={openSelectUI}
          label="Select an Option"
          valid={false}
          validationMessage="An option must be selected to continue"
        />
      </View>
    );

    Props

    Property PropType Required Default Value
    onPress func true -
    disabled bool false false
    label oneOfType(string, element) false null
    valid oneOf(true, false, null) false null
    validationMessage string false null

    Keywords

    none

    Install

    npm i react-native-bpk-component-select

    DownloadsWeekly Downloads

    9

    Version

    5.0.1

    License

    Apache-2.0

    Unpacked Size

    105 kB

    Total Files

    12

    Last publish

    Collaborators

    • frugoman
    • zgeor
    • anambl
    • marianeumayer-skyscanner
    • ojcurt
    • tiagohngl