Comments (4)
Thanks for your feedback. I'm not sure what's going on here - I haven't the time to test and I don't even know if my XCode simulator is still installed. I'll gladly accept a PR and another maintainer here! My time with RN is super limited for the next bit of time 😦
from react-native-loading-spinner-overlay.
hey @jjzazuet how did you go with this? I just had a quick look, react native does provide a onBack listener, however it will depend on your implementation. ie. if you have multiple listeners or nested scenes/navigation the experience may vary. It would also need to bind to your containers state, and not this package. Because of this I wouldnt recommend implementing a method specific to this package, but rather to your project.
I found https://github.com/fractaltech/react-native-onback to be pretty simply but powerful.
from react-native-loading-spinner-overlay.
Hey @b8ne, so what I ended up doing was wrapping Spinner
under my app specific component (which is connected to the Redux state), and then just intercepting the Android back event with the BackAndroid
api offered by Facebook. So yeah I think it makes sense to close this issue report. Thanks for your help!
from react-native-loading-spinner-overlay.
Hi.
I know this issue is closed for a while now, but maybe following comment will still help someone. When back button on Android is pressed, Spinner disappears, because of the Modal's prop onRequestClose, which is set to close the Modal. Using onRequestClose={() => {}}
instead, will prevent from closing the Modal and Spinner will be visible until the visibility is changed.
Best.
from react-native-loading-spinner-overlay.
Related Issues (20)
- When i navigate to another screen and at that screen i have used spinner but its not working
- After dismissing the spinner, I can't tap on anything HOT 4
- No longer works with RN 0.63.2 HOT 1
- Font Family HOT 3
- Spinner is not staying on screen and may be causing a function to not work. Please help!
- Cancelable Spinner not work HOT 4
- Is it really for React-Native? HOT 1
- Dismissing spinner also dismisses modal HOT 3
- App unresponsive on iOS 15 after enabling then disabling HOT 6
- 2.0.0 to 3.0.0 migration? HOT 34
- Host key verification failed fatal: Could not read from remote repository.
- fixing android navigation bar popping up in apps that don't use it HOT 2
- Animation does not work
- example is missing code for CHILDREN
- can't style the View around the Text
- Need Callback: once completely stops spinner loading, we need one callback function. HOT 1
- in 0.62 it's not working well. HOT 3
- Is it possible to support onPress ? HOT 1
- Spinner is not spinning on specific Android device HOT 2
- Support "statusBarTranslucent" by upgrading to latest react native HOT 4
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-loading-spinner-overlay.