wix-incubator / react-native-swipe-view Goto Github PK
View Code? Open in Web Editor NEWNative container for a React Native view which supports swipe behavior (for swipe to delete and such)
License: MIT License
Native container for a React Native view which supports swipe behavior (for swipe to delete and such)
License: MIT License
E:\forbuild\node_modules\react-native-swipe-view\android\src\main\java\com\wix\RNSwipeView\SwipeViewPackage.java:22: error: method does not override or implement a method from a supertype
@OverRide
^
Note: E:\forbuild\node_modules\react-native-swipe-view\android\src\main\java\com\wix\RNSwipeView\SwipeView.java uses or overrides a deprecated API.
Note: Recompile with -Xlint:deprecation for details.
1 error
:RNSwipeView:compileReleaseJavaWithJavac FAILED
FAILURE: Build failed with an exception.
Compilation failed; see the compiler error output for details.
BUILD FAILED
I'm not too familiar with any native code outside of RN. Would it be possible to add the classic react-native ... link
? I hope that's not too much to ask!
<SwipeView changeOpacity removeViewOnSwipedOut onSwipedOut={(direction) => { if (direction === 'right') { // Do something } else if (direction === 'left') { // Do something } }} >
But the RCTDirectEventBlock isn't being called with the direction, so that we cannot use the direction property in the JS.
I saw in the Objective C that the code looks like:
_onSwipedOut(@{@"direction": directionString}); self.onSwipedOut = nil;
But even direction.direction
(in the upper code) doesn't work.
The image feature is very common, I want a smooth swiper for it.
Can I use react-native-swipe-view
to write an image swiper?
The example shown is not working. Swiping is not triggered neither the styling applied. I am using it along with react-native-navigation. Everything compiles fine though! Using Java sdk1.8, and android sdk 25.0.1 on Windows 10.
Hi,
events on android are not passing the direction value. I can't neither find it on the java code. So i guess, the code still on WIP? any comments?
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.