@momo-kits/swipe 0.157.2-test.1 → 0.158.1-beta.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/SwipeView.tsx +2 -5
- package/package.json +1 -1
package/SwipeView.tsx
CHANGED
|
@@ -7,7 +7,7 @@ import React, {
|
|
|
7
7
|
} from 'react';
|
|
8
8
|
import {Animated, Dimensions, TouchableHighlight, View} from 'react-native';
|
|
9
9
|
import {Swipeable} from 'react-native-gesture-handler';
|
|
10
|
-
import {ApplicationContext, Colors, Icon, Text
|
|
10
|
+
import {ApplicationContext, Colors, Icon, Text} from '@momo-kits/foundation';
|
|
11
11
|
import {SwipeableRef, SwipeAction, SwipeProps} from './types';
|
|
12
12
|
import styles from './styles';
|
|
13
13
|
|
|
@@ -17,7 +17,6 @@ export const Swipe: ForwardRefRenderFunction<SwipeableRef, SwipeProps> = (
|
|
|
17
17
|
{children, leftActions, rightActions, height = 56, itemRadius, ...props},
|
|
18
18
|
ref
|
|
19
19
|
) => {
|
|
20
|
-
useScreenRegistry('Swipe');
|
|
21
20
|
const {theme} = useContext(ApplicationContext);
|
|
22
21
|
const screenWidth = Dimensions.get('window').width;
|
|
23
22
|
const swipeableRef = useRef<Swipeable>(null);
|
|
@@ -149,6 +148,4 @@ export const Swipe: ForwardRefRenderFunction<SwipeableRef, SwipeProps> = (
|
|
|
149
148
|
);
|
|
150
149
|
};
|
|
151
150
|
|
|
152
|
-
|
|
153
|
-
ForwardedSwipe.displayName = 'Swipe';
|
|
154
|
-
export default ForwardedSwipe;
|
|
151
|
+
export default forwardRef(Swipe);
|