Skip to content

Commit

Permalink
build(prebuilt): removed react-native-keyboard-controller lib
Browse files Browse the repository at this point in the history
it was causing issues with pip window
  • Loading branch information
stanwolverine committed Sep 27, 2023
1 parent 47c528c commit de878ec
Show file tree
Hide file tree
Showing 7 changed files with 6 additions and 47 deletions.
6 changes: 0 additions & 6 deletions packages/react-native-room-kit/example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -323,8 +323,6 @@ PODS:
- HMSHLSPlayerSDK (= 0.0.2)
- HMSSDK (= 1.0.1)
- React-Core
- react-native-keyboard-controller (1.7.0):
- React-Core
- react-native-lottie-splash-screen (1.1.1):
- React
- react-native-safe-area-context (3.3.0):
Expand Down Expand Up @@ -497,7 +495,6 @@ DEPENDENCIES:
- "react-native-blur (from `../node_modules/@react-native-community/blur`)"
- react-native-camera (from `../node_modules/react-native-camera`)
- react-native-hms (from `../../../react-native-hms`)
- react-native-keyboard-controller (from `../node_modules/react-native-keyboard-controller`)
- react-native-lottie-splash-screen (from `../node_modules/react-native-lottie-splash-screen`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- react-native-simple-toast (from `../node_modules/react-native-simple-toast`)
Expand Down Expand Up @@ -599,8 +596,6 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native-camera"
react-native-hms:
:path: "../../../react-native-hms"
react-native-keyboard-controller:
:path: "../node_modules/react-native-keyboard-controller"
react-native-lottie-splash-screen:
:path: "../node_modules/react-native-lottie-splash-screen"
react-native-safe-area-context:
Expand Down Expand Up @@ -696,7 +691,6 @@ SPEC CHECKSUMS:
react-native-blur: cfdad7b3c01d725ab62a8a729f42ea463998afa2
react-native-camera: 3eae183c1d111103963f3dd913b65d01aef8110f
react-native-hms: df52bcaf0cfbe6d9b9d75da1cd96fcc5f1357cae
react-native-keyboard-controller: 3a9328bd05ce52bb1c2680160b51b1a24dd50d59
react-native-lottie-splash-screen: 015423265bac5f46016dff2e31c97b9590808856
react-native-safe-area-context: 61c8c484a3a9e7d1fda19f7b1794b35bbfd2262a
react-native-simple-toast: bf002828cf816775a6809f7a9ec3907509bce11f
Expand Down
11 changes: 0 additions & 11 deletions packages/react-native-room-kit/example/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/react-native-room-kit/example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"react-native-camera": "4.2.1",
"react-native-device-info": "9.0.2",
"react-native-gesture-handler": "^2.12.1",
"react-native-keyboard-controller": "^1.6.1",
"react-native-linear-gradient": "^2.7.3",
"react-native-lottie-splash-screen": "github:ygit/react-native-lottie-splash-screen#master",
"react-native-modal": "12.1.0",
Expand Down
19 changes: 0 additions & 19 deletions packages/react-native-room-kit/package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 0 additions & 1 deletion packages/react-native-room-kit/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,6 @@
"react": "*",
"react-native": "*",
"react-native-gesture-handler": "^2.12.1",
"react-native-keyboard-controller": "^1.6.1",
"react-native-linear-gradient": "^2.7.3",
"react-native-modal": "^12.1.0",
"react-native-permissions": "3.4.0",
Expand Down
9 changes: 3 additions & 6 deletions packages/react-native-room-kit/src/HMSPrebuilt.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import {
SafeAreaInsetsContext,
SafeAreaProvider,
} from 'react-native-safe-area-context';
import { KeyboardProvider } from 'react-native-keyboard-controller';

import { store } from './redux/index';
import { HMSContainer } from './HMSContainer';
Expand Down Expand Up @@ -37,11 +36,9 @@ const _HMSPrebuilt: React.FC<HMSPrebuiltProps> = (props) => {
const safeAreaProviderExists = !!SafeAreaInsetsContext.Consumer._currentValue;

const content = (
<KeyboardProvider>
<Provider store={store}>
<HMSContainer />
</Provider>
</KeyboardProvider>
<Provider store={store}>
<HMSContainer />
</Provider>
);

if (safeAreaProviderExists) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@ import * as React from 'react';
import { Platform, StatusBar, useWindowDimensions } from 'react-native';
import type { StyleProp, ViewStyle } from 'react-native';
import Animated, {
useAnimatedKeyboard,
useAnimatedStyle,
useSharedValue,
} from 'react-native-reanimated';
import { useReanimatedKeyboardAnimation } from 'react-native-keyboard-controller';

export interface HMSKeyboardAvoidingViewProps {
style?: StyleProp<Animated.AnimateStyle<StyleProp<ViewStyle>>>;
Expand All @@ -16,7 +16,7 @@ export const HMSKeyboardAvoidingView: React.FC<
> = ({ children, style }) => {
const animatedViewRef = React.useRef<Animated.View>(null);
const { height: windowHeight } = useWindowDimensions();
const animatedKeyboard = useReanimatedKeyboardAnimation();
const animatedKeyboard = useAnimatedKeyboard();

const initialPageY = useSharedValue(0);

Expand All @@ -33,7 +33,7 @@ export const HMSKeyboardAvoidingView: React.FC<
}, []);

const keyboardAvoidStyle = useAnimatedStyle(() => {
const keyboardHeight = -animatedKeyboard.height.value;
const keyboardHeight = animatedKeyboard.height.value;
return {
transform: [
{
Expand Down

0 comments on commit de878ec

Please sign in to comment.