lugg / react-native-android-snackbar Goto Github PK
View Code? Open in Web Editor NEWSnackbar widget for React Native apps in Android
License: MIT License
Snackbar widget for React Native apps in Android
License: MIT License
Most likely the snackbar appeared under the keyboard
When using duration INDEFINITE, on click of action it is getting dimissed.
Hello,
Just realize I can't force actionLabel text with react-native 0.21.
It stays at "DISMISS" whatever I do.
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?
Provide any property to set text color so that text color can be changed.
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.
is this support for both Android and IOS?
let onCardPress = ((board) => {
Snackbar.dismiss();
this.props.navigator.push({name: 'BoardScene', data: {board: board}});
});
And it throws this error :(
Undefined is not a function (evaluating 'NativeSnackbar.dismiss()')
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.
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:
Is there a way to show the snackbar on first page load?? I'd like to have it to function as a welcome message.
RN 0.43 uses [email protected]
which due to the end bit seems to conflict with the peerDep generating this warning:
warning "[email protected]" has incorrect peer dependency "react@>=15.1".
It's a minor issue but this could be fixed simply by adding 16.0.0-alpha.6
as valid to the dep.
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:
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
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.
Snackbars should animate on dismiss. This one isnt doing it. :(
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.