@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.
Files changed (2) hide show
  1. package/SwipeView.tsx +2 -5
  2. 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, useScreenRegistry} from '@momo-kits/foundation';
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
- const ForwardedSwipe = forwardRef(Swipe);
153
- ForwardedSwipe.displayName = 'Swipe';
154
- export default ForwardedSwipe;
151
+ export default forwardRef(Swipe);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@momo-kits/swipe",
3
- "version": "0.157.2-test.1",
3
+ "version": "0.158.1-beta.1",
4
4
  "private": false,
5
5
  "main": "index.tsx",
6
6
  "peerDependencies": {