@100mslive/react-native-room-kit
Version:
100ms Room Kit provides simple & easy to use UI components to build Live Streaming & Video Conferencing experiences in your apps.
33 lines (29 loc) • 1.02 kB
JavaScript
import * as React from 'react';
import Animated from 'react-native-reanimated'; // useDerivedValue, // useAnimatedStyle, // useAnimatedKeyboard,
export const HMSKeyboardAvoidingView = ({
children,
style
// bottomOffset=0
}) => {
// const animatedKeyboard = useAnimatedKeyboard();
// const initialPageY = useDerivedValue(() => bottomOffset, [bottomOffset]);
// const keyboardAvoidStyle = useAnimatedStyle(() => {
// const keyboardHeight = animatedKeyboard.height.value;
// return {
// transform: [
// {
// translateY:
// keyboardHeight <= initialPageY.value
// ? 0 // Keep element at original `pageY` till and when keyboard height is less than `pageY`
// : -(keyboardHeight - initialPageY.value),
// },
// ],
// };
// });
return /*#__PURE__*/React.createElement(Animated.View, {
style: [style
// keyboardAvoidStyle
]
}, children);
};
//# sourceMappingURL=HMSKeyboardAvoidingView.android.js.map