Skip to content

Commit

Permalink
chore: update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhom committed Feb 20, 2021
1 parent f03a406 commit e204d97
Show file tree
Hide file tree
Showing 9 changed files with 1,066 additions and 508 deletions.
8 changes: 7 additions & 1 deletion example/index.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,12 @@
import 'react-native-gesture-handler';
import { AppRegistry } from 'react-native';

import { enableScreens } from 'react-native-screens';
enableScreens(true);

import { AppRegistry, LogBox } from 'react-native';
import App from './src/App';
import { name as appName } from './app.json';

LogBox.ignoreLogs(['react-native-maps']);

AppRegistry.registerComponent(appName, () => App);
4 changes: 2 additions & 2 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ PODS:
- React-jsi (= 0.63.4)
- RNCMaskedView (0.1.10):
- React
- RNGestureHandler (1.9.0):
- RNGestureHandler (1.10.1):
- React-Core
- RNReanimated (2.0.0-rc.3):
- DoubleConversion
Expand Down Expand Up @@ -521,7 +521,7 @@ SPEC CHECKSUMS:
React-RCTVibration: ae4f914cfe8de7d4de95ae1ea6cc8f6315d73d9d
ReactCommon: 73d79c7039f473b76db6ff7c6b159c478acbbb3b
RNCMaskedView: 5a8ec07677aa885546a0d98da336457e2bea557f
RNGestureHandler: 9b7e605a741412e20e13c512738a31bd1611759b
RNGestureHandler: 5e58135436aacc1c5d29b75547d3d2b9430d052c
RNReanimated: ca4f28c765329144d68bdad126bf6b0b1afc7a5a
RNScreens: b6c9607e6fe47c1b6e2f1910d2acd46dd7ecea3a
Yoga: 4bd86afe9883422a7c4028c00e34790f560923d6
Expand Down
4 changes: 2 additions & 2 deletions example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
"nanoid": "^3.1.20",
"react": "16.13.1",
"react-native": "0.63.4",
"react-native-gesture-handler": "^1.9.0",
"react-native-gesture-handler": "^1.10.1",
"react-native-maps": "^0.27.1",
"react-native-reanimated": "^2.0.0-rc.3",
"react-native-redash": "^16.0.8",
Expand All @@ -37,6 +37,6 @@
"@types/react": "^17.0.0",
"@types/react-native": "^0.63.42",
"metro-react-native-babel-preset": "^0.64.0",
"typescript": "^4.1.3"
"typescript": "^4.1.5"
}
}
22 changes: 14 additions & 8 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1156,6 +1156,11 @@
resolved "https://registry.yarnpkg.com/@types/hammerjs/-/hammerjs-2.0.36.tgz#17ce0a235e9ffbcdcdf5095646b374c2bf615a4c"
integrity sha512-7TUK/k2/QGpEAv/BCwSHlYu3NXZhQ9ZwBYpzr9tjlPIL2C5BeGhH3DmVavRx3ZNyELX5TLC91JTz/cen6AAtIQ==

"@types/hammerjs@^2.0.38":
version "2.0.39"
resolved "https://registry.yarnpkg.com/@types/hammerjs/-/hammerjs-2.0.39.tgz#4be64bbacf3813c79c0dab895c6b0fdc7d5e513f"
integrity sha512-lYR2Y/tV2ujpk/WyUc7S0VLI0a9hrtVIN9EwnrNo5oSEJI2cK2/XrgwOQmXLL3eTulOESvh9qP6si9+DWM9cOA==

"@types/istanbul-lib-coverage@*", "@types/istanbul-lib-coverage@^2.0.0":
version "2.0.3"
resolved "https://registry.yarnpkg.com/@types/istanbul-lib-coverage/-/istanbul-lib-coverage-2.0.3.tgz#4ba8ddb720221f432e443bd5f9117fd22cfd4762"
Expand Down Expand Up @@ -3870,12 +3875,13 @@ react-is@^16.12.0, react-is@^16.13.0, react-is@^16.7.0, react-is@^16.8.1, react-
resolved "https://registry.yarnpkg.com/react-is/-/react-is-16.13.1.tgz#789729a4dc36de2999dc156dd6c1d9c18cea56a4"
integrity sha512-24e6ynE2H+OKt4kqsOvNd8kBpV65zoxbA4BVsEOB3ARVWQki/DHzaUoC5KuON/BiccDaCCTZBuOcfZs70kR8bQ==

react-native-gesture-handler@^1.9.0:
version "1.9.0"
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.9.0.tgz#e441b1c0277c3fd4ca3e5c58fdd681e2f0ceddf0"
integrity sha512-fkkNeWDBzDdwDxDcxtYbrb9T1g0PLgT1AxBs2iO/p7uEbDbC6mIoL/NzuOnKNEBHcd0lpLoJuNmIfdmucEON5g==
react-native-gesture-handler@^1.10.1:
version "1.10.1"
resolved "https://registry.yarnpkg.com/react-native-gesture-handler/-/react-native-gesture-handler-1.10.1.tgz#e7a93a5bc516338bc24a57b3312043dc00489377"
integrity sha512-sDo6T0m+izIDczsIzE63nAqEG3BE/OwkCJoU4/qjdo7ryem7D0Rj/Y+SlAZP2lVAhllo65LDRYqd6SBe4y19Mg==
dependencies:
"@egjs/hammerjs" "^2.0.17"
"@types/hammerjs" "^2.0.38"
fbjs "^3.0.0"
hoist-non-react-statics "^3.3.0"
invariant "^2.2.4"
Expand Down Expand Up @@ -4631,10 +4637,10 @@ typedarray@^0.0.6:
resolved "https://registry.yarnpkg.com/typedarray/-/typedarray-0.0.6.tgz#867ac74e3864187b1d3d47d996a78ec5c8830777"
integrity sha1-hnrHTjhkGHsdPUfZlqeOxciDB3c=

typescript@^4.1.3:
version "4.1.3"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.3.tgz#519d582bd94cba0cf8934c7d8e8467e473f53bb7"
integrity sha512-B3ZIOf1IKeH2ixgHhj6la6xdwR9QrLC5d1VKeCSY4tvkqhF2eqd9O7txNlS0PO3GrBAFIdr3L1ndNwteUbZLYg==
typescript@^4.1.5:
version "4.1.5"
resolved "https://registry.yarnpkg.com/typescript/-/typescript-4.1.5.tgz#123a3b214aaff3be32926f0d8f1f6e704eb89a72"
integrity sha512-6OSu9PTIzmn9TCDiovULTnET6BgXtDYL4Gg4szY+cGsc3JP1dQL8qvE8kShTRx1NIw4Q9IBHlwODjkjWEtMUyA==

ua-parser-js@^0.7.18:
version "0.7.21"
Expand Down
16 changes: 8 additions & 8 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,12 +40,12 @@
"invariant": "^2.2.4",
"lodash.isequal": "^4.5.0",
"nanoid": "^3.1.20",
"react-native-redash": "^16.0.6"
"react-native-redash": "^16.0.8"
},
"devDependencies": {
"@commitlint/cli": "^11.0.0",
"@commitlint/config-conventional": "^11.0.0",
"@react-native-community/bob": "^0.16.2",
"@react-native-community/bob": "^0.17.1",
"@react-native-community/eslint-config": "^2.0.0",
"@release-it/conventional-changelog": "^2.0.0",
"@types/invariant": "^2.2.34",
Expand All @@ -54,18 +54,18 @@
"@types/react-native": "^0.63.8",
"auto-changelog": "^2.2.1",
"copyfiles": "^2.4.1",
"eslint": "^7.15.0",
"eslint-config-prettier": "^7.0.0",
"eslint-plugin-prettier": "^3.3.0",
"eslint": "^7.20.0",
"eslint-config-prettier": "^7.2.0",
"eslint-plugin-prettier": "^3.3.1",
"husky": "^4.3.6",
"lint-staged": "^10.5.3",
"lint-staged": "^10.5.4",
"prettier": "^2.2.1",
"react": "~16.9.0",
"react-native": "^0.62.2",
"react-native-gesture-handler": "^1.9.0",
"react-native-gesture-handler": "^1.10.1",
"react-native-reanimated": "^2.0.0-rc.3",
"release-it": "^14.2.2",
"typescript": "^4.1.3"
"typescript": "^4.1.5"
},
"peerDependencies": {
"react": "*",
Expand Down
15 changes: 8 additions & 7 deletions src/components/bottomSheet/types.d.ts
Original file line number Diff line number Diff line change
@@ -1,20 +1,21 @@
import type React from 'react';
import type { ViewStyle } from 'react-native';
import type Animated from 'react-native-reanimated';
import type {
GestureHandlerProperties,
PanGestureHandlerProperties,
} from 'react-native-gesture-handler';
import type { PanGestureHandlerProps } from 'react-native-gesture-handler';
import type { BottomSheetHandleProps } from '../bottomSheetHandle';
import type { BottomSheetBackdropProps } from '../bottomSheetBackdrop';
import type { BottomSheetBackgroundProps } from '../bottomSheetBackground';

export interface BottomSheetProps
extends BottomSheetAnimationConfigs,
Pick<GestureHandlerProperties, 'waitFor' | 'simultaneousHandlers'>,
Pick<
PanGestureHandlerProperties,
'activeOffsetY' | 'activeOffsetX' | 'failOffsetY' | 'failOffsetX'
PanGestureHandlerProps,
| 'activeOffsetY'
| 'activeOffsetX'
| 'failOffsetY'
| 'failOffsetX'
| 'waitFor'
| 'simultaneousHandlers'
> {
// configuration
/**
Expand Down
3 changes: 1 addition & 2 deletions src/components/bottomSheetDebugView/ReText.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import React from 'react';
import { TextProps as RNTextProps } from 'react-native';
import { TextProps as RNTextProps, TextInput } from 'react-native';
import Animated, { useAnimatedProps } from 'react-native-reanimated';
import { TextInput } from 'react-native-gesture-handler';

interface TextProps {
text: string;
Expand Down
19 changes: 10 additions & 9 deletions src/contexts/internal.ts
Original file line number Diff line number Diff line change
@@ -1,18 +1,19 @@
import { createContext, RefObject } from 'react';
import type {
GestureHandlerProperties,
PanGestureHandlerProperties,
} from 'react-native-gesture-handler';
import type { PanGestureHandlerProps } from 'react-native-gesture-handler';
import type Animated from 'react-native-reanimated';
import type { ANIMATION_STATE } from '../constants';
import type { Scrollable, ScrollableRef } from '../types';

export interface BottomSheetInternalContextType
extends Pick<GestureHandlerProperties, 'waitFor' | 'simultaneousHandlers'>,
Pick<
PanGestureHandlerProperties,
'activeOffsetY' | 'activeOffsetX' | 'failOffsetY' | 'failOffsetX'
> {
extends Pick<
PanGestureHandlerProps,
| 'activeOffsetY'
| 'activeOffsetX'
| 'failOffsetY'
| 'failOffsetX'
| 'waitFor'
| 'simultaneousHandlers'
> {
enableContentPanningGesture: boolean;
snapPointsCount: number;
animatedPosition: Animated.SharedValue<number>;
Expand Down

0 comments on commit e204d97

Please sign in to comment.