Skip to content

Commit

Permalink
chore: update Touchable types
Browse files Browse the repository at this point in the history
  • Loading branch information
Bibazavr committed Jan 15, 2025
1 parent 9d124bc commit 6e31f78
Show file tree
Hide file tree
Showing 5 changed files with 13,720 additions and 20,051 deletions.
3 changes: 1 addition & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,6 @@
"@testing-library/react-native": "^9.1.0",
"@types/jest": "^29.5.13",
"@types/react": "~18.3.12",
"@types/react-native": "^0.67.3",
"@types/react-test-renderer": "^18.0.0",
"@types/xdate": "^0.8.32",
"@types/yargs": "^17.0.10",
Expand All @@ -89,7 +88,7 @@
"simple-git": "^3.10.0",
"ts-jest": "^29.0.5",
"ts-node": "^10.9.1",
"typescript": "^5.4.5",
"typescript": "^5.7.3",
"winston": "^3.8.1"
},
"engines": {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
TouchableHighlightProps as DefaultTouchableHighlightProps,
TouchableHighlight as DefaultTouchableHighlight,
View,
} from 'react-native';

export type TouchableHighlightProps = DefaultTouchableHighlightProps;
export type ITouchableHighlight = DefaultTouchableHighlight;
export type ITouchableHighlight = View & TouchableHighlightProps;
4 changes: 2 additions & 2 deletions packages/core/src/basic/components/TouchableOpacity/types.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import {
TouchableOpacityProps as DefaultTouchableOpacityProps,
TouchableOpacity as DefaultTouchableOpacity,
View,
} from 'react-native';

export type ITouchableOpacityProps = DefaultTouchableOpacityProps;
export type ITouchableOpacity = DefaultTouchableOpacity;
export type ITouchableOpacity = View & ITouchableOpacityProps;
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {render} from '@testing-library/react-native';
import {TouchableOpacity} from 'react-native';
import {View} from 'react-native';
import {SafeAreaProvider} from 'react-native-safe-area-context';
import React from 'react';

Expand All @@ -18,7 +18,7 @@ describe('@lad-tech/mobydick-core/TooltipBase/TooltipBase', () => {
});
it('should renders correctly bottom center', () => {
jest
.spyOn(buttonRef.current as TouchableOpacity, 'measure')
.spyOn(buttonRef.current as View, 'measure')
.mockImplementation(
(
cb: (
Expand Down
Loading

0 comments on commit 6e31f78

Please sign in to comment.