Giter Club home page Giter Club logo

react-native-android-snackbar's People

Contributors

duranmla avatar erickreutz avatar jwarby avatar lxcid avatar pedro avatar zoontek 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

Watchers

 avatar  avatar  avatar  avatar  avatar

react-native-android-snackbar's Issues

Super!! Option for detached?

Thanks for this super duper native lib. For simple things like this people say to make a pure JS solution but I totally feel the difference when using the actual native thing. I strongly prefer that native thing.

I'm not too familiar with snackbars yet but I was wondering how come this one is always attached to the bottom?

Sometimes I see snack's detached from bottom like this:

Is this not a snackbar, but is just a toast?

Snackbar overlap with system menu on Android 5.0 Lollipop

I think we need recalculate Snackbar bottom position on Android 5.0 Lollipop. I cannot click DISMISS button anymore if overlap like that.

Before trigger Snackbar:
screenshot_20160515_094525

After trigger Snackbar:
screenshot_20160515_094542

PS: It has no issue on Android before Lollipop.

Rnpm : new ReactSnackbarPackage(this)

The command rnpm link for the package adds the line new ReactSnackbarPackage() but it doesn't compile.
I have to manually change the line to new ReactSnackbarPackage(this) everytime so it can compile.

IOS

is this support for both Android and IOS?

Event to see if snackbar is shown

I see in the code that there has been talked about events being fired. My question is how can I check if these events are fired. Need to know if Snackbar is active.

Create and Host Artifact

My current setup is to create React Native code in an Android Library and then import that into our main application. That allows our mobile developers to not worry about React Native, npm, node, etc and continue with their work.

Would it be okay to create the .aar artifact that this library can generate and host it with jitpack/jcenter?

If so, I can create a PR to do so. I would outline the best approach would be:

  1. Setup CI (Circle CI might be good)
  2. Add gradle scripts for publishing the artifact
  3. If the build passes, upload the artifact.

Push fab?

I'm just getting into the world of Android. The guidelines says to "Don’t block the floating action button" here - https://material.io/guidelines/components/snackbars-toasts.html#snackbars-toasts-usage

They shows this video:

https://storage.googleapis.com/material-design/publish/material_v_12/assets/0B6Okdz75tqQsZV9TS3lTVHFzRUE/components-snackbar-usage-fabdo-005.webm

Is it possible for us to acheive this affect with this module? Do you have a compatible native fab module?

I saw this but its non-native - js solution - https://js.coach/react-native-snackbar-component?search=snack&collection=React+Native

Add support for RN 0.29

I have tried to do this by just removing the reference of the activity on the constructor and using getCurrentActivity() but I got an error that says: "undefined symbol" for that method, even when we are extended from ReactContextBaseJavaModule so, I'm not sure what is happening here, if I find the solution I will make the PR, otherwise, if someone knows what is happening will be great.

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.