Giter VIP home page Giter VIP logo

react-native-toast-banner's People

Contributors

benevbright avatar dependabot[bot] avatar hyochan avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar

react-native-toast-banner's Issues

Provide hooks

This module only provides HoC for now.
It should provide the hooks as well.

provide hideBanner function

The banner/toast is disappeared when you touch it.
It's handy but it would be better if it provides the option to hide banner manually.

Connect library with example properly

I've written how to develops the library with this example.
https://github.com/benevbright/react-native-toast-banner#testing-your-code-with-the-example

But it's really inefficient. There must be a way to do this properly.

I've tried
Adding an example app to your React Native library

  • it seemed to be almost done but Metro complains about @babel/runtime module.

Yarn workspaces

  • works well when not using hoist. However, If you don't use hoist, you can't run pod install because node_modules is in the root folder. Thus, it's not a relevant solution.
  • with hoist, 'react' is double(one in the library and one in the example) so not working. I've tried yarn link react from one another but it wasn't working either.

Help!

Controll the duration with long press

I'd like to use a TouchableWithoutFeedback and keep the Banner as long as user keeps his finger on the button with onPressIn and release the banner with onPressOut.
Do you think is possible to take controll over the duration?

Various positions than Top

It only provides the top position for now.
It should give an option for the bottom position. (and center too)

showBanner({
  ...
  position: 'bottom', // 'top' | 'center' | 'bottom'
})

Having multiple issues when trying to run this repo locally

I was trying to run this repo locally and unfortunately, I had multiple issues.

  1. Very first time I got this error

Screenshot 2022-08-11 at 10 32 11 PM

then I followed instructions from here to fix this. This actually updating the podfile.

  1. Somehow managed to run npm run ios successfully. Then there appears another one problem, which you can see it in the screenshot below:

Screenshot 2022-08-11 at 10 37 02 PM

then run npm i react-native-screens in the root directory and this solved the issue

  1. Finally I got this error:

Screenshot 2022-08-11 at 10 41 08 PM

I tried multiple things to solve this but there has been no luck.

Please let me know if I am doing wrong.
And also it will be great if you can add a section like how to setup locally in the readme.
I hope everything I provided is clear enough to understand the issues I am facing. Please let me know if you need more information about this.

package versions in my machine:

node version: v16.13.2 npm version: 8.1.2

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.