Comments (11)
Hi @soliury! Can you give me some example code where this happens? If you can do that I can surely fix it for you 😄
from react-native-overlay.
I have delete the wrong code.
But I can discribe in words:
I put a overlay in a sence named topic
, I push the sence in a sence named tab
, and then, turn to the topic
sence, but when I pop this sence by use navigator.pop()
it works, the overlay can disdrory, but when I use gesture to pop it , it can't disdrory, it will show in tab
sence.
from react-native-overlay.
@soliury - thanks! I'll try to reproduce
from react-native-overlay.
@soliury I wonder if you set the boolean variable that would be used by the Overlay's isVisible
property to false
. Set this boolean variable in the `Topiccomponent's
componentWillUnmount()`` method...
from react-native-overlay.
I'm experiencing a similar issue. I have the following in my Overlay:
componentWillUnmont(){
this.props.isVisible = false;
this.render();
},
However, there is always about a second of lag before the Overlay actually removes itself, and it sometimes fails to do so for a few seconds. Furthermore, when I cmd+R to refresh the JS and load a new preview of my app, the Overlay stays on the simulator and doesn't remove itself. Is there another way I can reliably remove the Overlay?
Thanks so much!
from react-native-overlay.
If anyone has a chance to investigate this further it would be much appreciated! Unfortunately I have higher priority tasks to work and this library currently solves all of the needs that I personally have for it :)
from react-native-overlay.
Can confirm this issue. Setting isVisible={true} then replacing the route in navigator via an async function. Overlay does not disappear and isVisible. Even refreshing the JS via react native menu does not remove the overlay. Need to close the app via app manager or Xcode. Might have something to do with how the component deals with being unmounted?
from react-native-overlay.
Might you need to change this:
constructor(props) {
super();
// ... this.state or whatever
}
to this?
constructor(props) {
super(props);
// ... set state or whatever
}
@louuysison @Achang28 @travisyeh did you fix?
from react-native-overlay.
See #36 - we will be refactoring this soon to support Android/iOS and not have any issues here, there will no longer be the XCode integration needed
from react-native-overlay.
Similar problem here. I try to dynamically change components inside the overlay but while the component is getting destroyed, it is still drawn onto the screen. Any workaround?
from react-native-overlay.
Hey guys, I am facing the same issue. Its more than 6 years since this issue is opened. Is there any workaround?
from react-native-overlay.
Related Issues (20)
- When upgrading to react-native 0.15.0, RCTViewNodeProtocol doesn't exist anymore HOT 1
- Working with `Animated` HOT 4
- Overlay Style Overrides in-code Style, Misaligning Components in View HOT 2
- Overlay Size HOT 1
- Couldn't run HOT 2
- cloneWithProps is deprecated HOT 1
- *STICKY* Will be refactored soon to support ANDROID + iOS PROPERLY! HOT 3
- Question about performance
- Overlay and actionsheets? HOT 2
- Add support for partial overlay?
- Library for Android? HOT 2
- Process supplied styles
- Breaking in RN 0.26+: Separate React from React Native HOT 1
- zIndex is not always working as a replacement of the react-native-overlay component HOT 1
- Push a new version HOT 5
- It doesn't show children elements
- Doctor verify user
- "RNOverlay" does not exist HOT 2
- Major errors when build HOT 6
- Android support? HOT 3
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-overlay.