react-native-convenience

1.0.4 • Public • Published

react-native-convenience

##Convenient components for android and ios

npm install --save react-native-convenience 

TOAST

     TOAST('whatever you want here', 'short', "top")
     
     msg: anything you want
     duration: short || long
     position: top || bottom, default is center

ListItems

    import {listStyles} from react-native-convenience
       <ListItems key={key}
                           onPress={ () => this.anyFunction}
                           name={item.name}
                           short_description={item.short_description}
                           price={price}
                           image={{uri:item.image}} OR  image={require('./file')} 
                        />

PropsTypes

  • onPress
  • name
  • short_description
  • image
  • price
  • mainStyles // for backgroundColor
  • imageStyles // width and height

picture example

alt text

Package Sidebar

Install

npm i react-native-convenience

Weekly Downloads

0

Version

1.0.4

License

ISC

Unpacked Size

278 kB

Total Files

5

Last publish

Collaborators

  • ispirett