Comments (8)
I'd like to implement react-motion
for that. Just waiting it to be a bit more stable and tested.
from react-native-side-menu.
Hm, what about Animated
?
from react-native-side-menu.
@grabbou Animated? If you're talking about AnimatedExperimental, then you should check it out facebook/react-native#796
from react-native-side-menu.
No, I am talking about Animated
- https://facebook.github.io/react-native/docs/animations.html#animated they presented that library during ReactEurope and looks like a quite powerful tool to do native animations (it looks a lot like CoreAnimations in terms of how you group different bits, but haven't dig into the details yet) 💃
from react-native-side-menu.
Now I'm already using it and you can pass animation
prop to component. Am I missing something? What's the idea you want me to implement? Something like support queues?
from react-native-side-menu.
Nah you are using LayoutAnimation
, just saying Animated
is worth investigating as a good alternative to react-motion
(esp. given the fact Animated might be more performant as I am pretty sure they have some really good bindings for that)
from react-native-side-menu.
That's true. So, you want to animate opening/closing of the side menu. What is your propose for API? something like
const queue = [
Animated.decay(position, { // coast to a stop
velocity: {x: gestureState.vx, y: gestureState.vy}, // velocity from gesture release
deceleration: 0.997,
}),
Animated.parallel([ // after decay, in parallel:
Animated.spring(position, {
toValue: {x: 0, y: 0} // return to start
}),
Animated.timing(twirl, { // and twirl
toValue: 360,
}),
]),
];
// ...
<SideMenu animationQueue={queue}/>
right?
And in the background it may be used like this:
updatePosition() {
// this.sideMenu.setNativeProps({ left: this.left, });
Animated.queue(this.prop.animationQueue).start();
}
where this.state.left = Animated.Value(0);
?
from react-native-side-menu.
Should be solved in 0.12.1
from react-native-side-menu.
Related Issues (20)
- OpenMenuOffset not working in production.
- Where did the Menu tags come from? HOT 2
- Hardware Back closes App on every scene in side menu
- Sample code does not work HOT 1
- Shadow/Elevation possibility feature request HOT 1
- undefined is not a function (near '..._react2.default.createClass...') Why am i getting this error ?
- TypeError Undefined is not a function (evaluating _firebase.default.initialize app) HOT 1
- SideMenu is visible below the component it is rendered on HOT 6
- 1 to 2 second delay when toggling menu HOT 3
- Crash on iOS when app built in release, works in debug HOT 3
- Is react-native-web supported? HOT 2
- All API props are not available in v1.1.3
- autoClosing prop does not work
- Use native driver for the animation HOT 4
- Side Menu stuck on android device, i can not click any where. it always appear at the left side of the screen and ovellaping the main screen content HOT 1
- Change style overlay
- componentWillMount has been renamed, and is not recommended for use HOT 1
- align problem when phone language is Arabic HOT 3
- Can we get a new release please? HOT 15
- Warnings HOT 6
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-side-menu.