sprettie
v1.0.6
Published
Componentes estilizados e animados para react-native
Downloads
127
Maintainers
Readme
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>
)
}