react-native-viewpager icon indicating copy to clipboard operation
react-native-viewpager copied to clipboard

Not working on Android

Open UsmanSaeedEmumba opened this issue 9 years ago • 4 comments

I have read that this component works on both platforms, Android and iOS\

"This is the ViewPager componnent in React Native both for Android and iOS."

But, I've integrated react-native-viewpager in my app, its working fine on iPhone but breaks on Android devices. I'm unable to swipe through the pages on my android device.

Do anyone have working example of this component?

P.S: It breaks even if I tried to run simple Demo example of images mentioned in its Docs. I'm using react-native v0.20.

UsmanSaeedEmumba avatar May 27 '16 06:05 UsmanSaeedEmumba

+1

kunsachdeva avatar Jul 20 '16 08:07 kunsachdeva

+1

waleedarshad-vf avatar Aug 04 '16 13:08 waleedarshad-vf

+1

TigerChain avatar Sep 01 '16 10:09 TigerChain

There is an issue with swiping, due to the React Native Events on android using nanoseconds instead of the milliseconds used on iOS. I sent in an earlier fix which got reverted due to some internal-FB issue, but it has been fixed (and stayed-in!) with https://github.com/facebook/react-native/commit/79f3950d62dcd34011851813fba07d02f730cda0 , which should go out with 0.34.

I'm hopeful this should fix some of the swiping issues on Android, but not sure what else needs to be fixed yet.

mikelambert avatar Sep 22 '16 23:09 mikelambert