react-native-swipe-gestures-plus
Advanced tools
Comparing version 1.1.0 to 1.1.1
"use strict"; | ||
import React, { Component } from "react"; | ||
import { View, PanResponder } from "react-native"; | ||
import { View, PanResponder,Animated } from "react-native"; | ||
@@ -139,3 +139,8 @@ export const swipeDirections = { | ||
render() { | ||
return <View {...this.props} {...this._panResponder.panHandlers} />; | ||
return ( | ||
<Animated.View {...this._panResponder.panHandlers} style={this.props.gestureStyle}> | ||
<View>{this.props.children}</View> | ||
</Animated.View> | ||
); | ||
} | ||
@@ -142,0 +147,0 @@ } |
{ | ||
"name": "react-native-swipe-gestures-plus", | ||
"types": "index.d.ts", | ||
"version": "1.1.0", | ||
"version": "1.1.1", | ||
"description": "4-directional swipe gestures with press and Long Press Events for react-native", | ||
@@ -6,0 +6,0 @@ "main": "index.js", |
@@ -96,2 +96,3 @@ # react-native-swipe-gestures-plus | ||
config={config} | ||
gestureStyle={{width:'100%',height:'100%',justifyContent: "center",alignItems: "center",flex:1,backgroundColor: backgroundColor}} | ||
style={{ | ||
@@ -98,0 +99,0 @@ flex: 1, |
13749
182
165