sbalay / react-native-redux-toast

Simple to use, easy to customize Toast component for Android & iOS. Developed with love for redux apps
50 stars 21 forks source link

feat(Toast): add position props, to change the position of the toast fix #5 #10

Closed ikhsanalatsary closed 2 years ago

ikhsanalatsary commented 6 years ago

in the response to issue #5 , I create a solution for it. usage for instance:

  <Toast
     position={50}
     messageStyle={{ color: Colors.snow }}
     containerStyle={{ backgroundColor: Colors.primary }}
   />

the position must be an integer. If it's set greater than 0, the position will be on top with that value. if it's not specified, the default is -100 and will transform to 100 in the render function and the position will be on bottom with that value. @sbalay, what about your opinion?

thanks.