brentvatne / run-after-interactions-exp Goto Github PK
View Code? Open in Web Editor NEWExample of using InteractionManager to avoid Navigator transition delays
Example of using InteractionManager to avoid Navigator transition delays
Trying to visit this on Exponent on my Android isn't working:
exp://exp.host/@brentvatne/run-after-interactions-example
.
I see the blue Something went wrong.
screen
I have two components I'm working with. The first, is a preview card and the second is a detailed view of that preview card. Tapping the preview component pushes the detail view on the stack. These components are in separate files and I run InteractionManager in the detailed view. Like so:
componentDidMount() {
InteractionManager.runAfterInteractions(() => {
console.log('transition complete');
});
}
In this example you have two views and Navigator in the same file, but how would you handle this if “deferAnimations” and “MainScreen” were in one file and “DeferredExpensiveScene” was in another? Maybe this would just work, but for me nothing happens.
Any help or feedback would be dope. Thanks!
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.