National Public Mania

    sprettie

    1.0.6 • Public • Published

    sprettie

    Getting started

    $ npm install sprettie --save

    or

    $ yarn add sprettie

    Usage

    import React, { useState } from 'react'
    import { View } from 'react-native'
    import { BottomPopUp, Select } from 'sprettie'
    
    function App() {
      const [visible, setVisible] = useState(true)
      
      return (
        <View style={{ flex: 1}}>
          <Select 
            label="Selecione um item" /* This prop is optional */
            itens={
              [
                { value: 1, label: 'Option 1' },
                { value: 2, label: 'Option 2' },
              ]
            }
            onSelected={item => {
              console.log(item.value)
            }}
          />
        
          <BottomPopUp
            visible={visible}
            onDismiss={() => setVisible(false)}
          >
            <View></View>
          </BottomPopUp>
        </View>
      )
    }

    Install

    npm i sprettie

    DownloadsWeekly Downloads

    22

    Version

    1.0.6

    License

    none

    Unpacked Size

    13.3 kB

    Total Files

    9

    Last publish

    Collaborators

    • ianpvs