chenglou / react-tween-state

React animation.
Other
1.74k stars 70 forks source link

not working with android ? #59

Open azamkth opened 8 years ago

chenglou commented 8 years ago

What specifically doesn't work with android? The demos or the library?

azamkth commented 8 years ago

Animation stuff does not work, https://github.com/lelandrichardson/react-native-segmented-view this library is specifically using react-tween-state. it works fine with iOS but for android all function works good but animation doest not work

ghost commented 8 years ago

It is confusing that the official docs state "Not recommended" and then precede to give an example of it usage.

I tried using it with Android and found that it did not behave well with react-native. Does this play nice with react-native, or is it also "Not recommended" by you for use with react-native. Actually similar question for react-motion.

Note that I also tried the basic examples from this repo and facebook.

best regards,

smallpath commented 8 years ago

feels like I am a little bit late.

if you use react-native-segmented-view, please add collapsable={false} props to title View, then react-tween-state will appears

However, there is another problem.Touched from left to right, the animation looks very strange.

chenglou commented 8 years ago

Not sure if many still uses react-tween-state on native (or at all), but thanks for the update! Also, what do you mean by strange?

smallpath commented 8 years ago

There are two values here: barLeft and barRight. I just want them start motion at the same time but it did't work as expected

here is the code:

        // this.tweenState('barLeft', {
        //     easing: tweenState.easingTypes.easeInOutQuad,
        //     duration: this.props.duration,
        //     endValue: pageX
        // });

        // this.tweenState('barRight', {
        //     easing: tweenState.easingTypes.easeInOutQuad,
        //     duration: this.props.duration,
        //     endValue: screen.width - pageX - width,
        // });

in addition , if I register barRight before barLeft, the motion will be much different. Is there something I misunderstand ?