sprettie
Componentes estilizados e animados para react-native
Last updated 4 months ago by ianpvs .
Repository · Bugs · Original npm · Tarball · package.json
$ cnpm install sprettie 
SYNC missed versions from official npm registry.

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>
  )
}

Current Tags

  • 1.0.6                                ...           latest (4 months ago)

7 Versions

  • 1.0.6                                ...           4 months ago
  • 1.0.5                                ...           4 months ago
  • 1.0.4                                ...           4 months ago
  • 1.0.3                                ...           4 months ago
  • 1.0.2                                ...           4 months ago
  • 1.0.1                                ...           4 months ago
  • 1.0.0                                ...           4 months ago
Maintainers (1)
Downloads
Today 0
This Week 0
This Month 0
Last Day 0
Last Week 0
Last Month 0
Dependents (0)
None

Copyright 2014 - 2016 © taobao.org |