fix the import of keyboard
This commit is contained in:
parent
98acc82e8f
commit
6cbd363a2c
|
@ -1,6 +1,6 @@
|
||||||
import React from 'react';
|
import React from 'react';
|
||||||
import { View } from 'react-native';
|
import { View } from 'react-native';
|
||||||
import { Keyboard } from 'react-native-ui-lib';
|
import { KeyboardRegistry } from 'react-native-ui-lib/keyboard';
|
||||||
import { Provider } from 'react-redux';
|
import { Provider } from 'react-redux';
|
||||||
|
|
||||||
import store from '../../lib/store';
|
import store from '../../lib/store';
|
||||||
|
@ -13,7 +13,7 @@ import { colors } from '../../lib/constants';
|
||||||
|
|
||||||
const EmojiKeyboard = ({ theme }: { theme: TSupportedThemes }) => {
|
const EmojiKeyboard = ({ theme }: { theme: TSupportedThemes }) => {
|
||||||
const onItemClicked = (eventType: EventTypes, emoji?: IEmoji) => {
|
const onItemClicked = (eventType: EventTypes, emoji?: IEmoji) => {
|
||||||
Keyboard.KeyboardRegistry.onItemSelected('EmojiKeyboard', { eventType, emoji });
|
KeyboardRegistry.onItemSelected('EmojiKeyboard', { eventType, emoji });
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
|
@ -35,4 +35,4 @@ const EmojiKeyboard = ({ theme }: { theme: TSupportedThemes }) => {
|
||||||
);
|
);
|
||||||
};
|
};
|
||||||
|
|
||||||
Keyboard.KeyboardRegistry.registerKeyboard('EmojiKeyboard', () => EmojiKeyboard);
|
KeyboardRegistry.registerKeyboard('EmojiKeyboard', () => EmojiKeyboard);
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
import React, { Component } from 'react';
|
import React, { Component } from 'react';
|
||||||
import { Alert, Keyboard, NativeModules, Text, View, BackHandler } from 'react-native';
|
import { Alert, Keyboard, NativeModules, Text, View, BackHandler } from 'react-native';
|
||||||
import { connect } from 'react-redux';
|
import { connect } from 'react-redux';
|
||||||
import { KeyboardAccessoryView } from 'react-native-ui-lib';
|
import { KeyboardAccessoryView } from 'react-native-ui-lib/keyboard';
|
||||||
import ImagePicker, { Image, ImageOrVideo, Options } from 'react-native-image-crop-picker';
|
import ImagePicker, { Image, ImageOrVideo, Options } from 'react-native-image-crop-picker';
|
||||||
import { dequal } from 'dequal';
|
import { dequal } from 'dequal';
|
||||||
import DocumentPicker from 'react-native-document-picker';
|
import DocumentPicker from 'react-native-document-picker';
|
||||||
|
|
|
@ -3,7 +3,6 @@ declare module 'commonmark';
|
||||||
declare module 'commonmark-react-renderer';
|
declare module 'commonmark-react-renderer';
|
||||||
declare module 'remove-markdown';
|
declare module 'remove-markdown';
|
||||||
declare module 'react-native-image-progress';
|
declare module 'react-native-image-progress';
|
||||||
declare module 'react-native-ui-lib/keyboard';
|
|
||||||
declare module '@rocket.chat/sdk';
|
declare module '@rocket.chat/sdk';
|
||||||
declare module 'react-native-config-reader';
|
declare module 'react-native-config-reader';
|
||||||
declare module 'react-native-keycommands';
|
declare module 'react-native-keycommands';
|
||||||
|
|
|
@ -123,7 +123,7 @@
|
||||||
"react-native-skeleton-placeholder": "^5.2.3",
|
"react-native-skeleton-placeholder": "^5.2.3",
|
||||||
"react-native-slowlog": "^1.0.2",
|
"react-native-slowlog": "^1.0.2",
|
||||||
"react-native-svg": "^12.3.0",
|
"react-native-svg": "^12.3.0",
|
||||||
"react-native-ui-lib": "RocketChat/react-native-ui-lib#new.build-rocket-chat",
|
"react-native-ui-lib": "RocketChat/react-native-ui-lib#19a93de50c89e5b8370c5bd35e1ed114c45ebf13",
|
||||||
"react-native-vector-icons": "9.1.0",
|
"react-native-vector-icons": "9.1.0",
|
||||||
"react-native-webview": "10.3.2",
|
"react-native-webview": "10.3.2",
|
||||||
"react-redux": "^8.0.5",
|
"react-redux": "^8.0.5",
|
||||||
|
|
|
@ -17502,9 +17502,9 @@ react-native-text-size@4.0.0-rc.1:
|
||||||
resolved "https://registry.yarnpkg.com/react-native-text-size/-/react-native-text-size-4.0.0-rc.1.tgz#1e048d345dd6a5a8e1269e0585c1a5948c478da5"
|
resolved "https://registry.yarnpkg.com/react-native-text-size/-/react-native-text-size-4.0.0-rc.1.tgz#1e048d345dd6a5a8e1269e0585c1a5948c478da5"
|
||||||
integrity sha512-CysqjU2jK6Yc+a+kEI222pUyTY2ywcU2HqbFqf1KHymW6OPTdvBBHqbEJKL0QiLhQaFYDbqicM+h990s9TP00g==
|
integrity sha512-CysqjU2jK6Yc+a+kEI222pUyTY2ywcU2HqbFqf1KHymW6OPTdvBBHqbEJKL0QiLhQaFYDbqicM+h990s9TP00g==
|
||||||
|
|
||||||
react-native-ui-lib@RocketChat/react-native-ui-lib#new.build-rocket-chat:
|
react-native-ui-lib@RocketChat/react-native-ui-lib#19a93de50c89e5b8370c5bd35e1ed114c45ebf13:
|
||||||
version "7.0.0"
|
version "7.0.0"
|
||||||
resolved "https://codeload.github.com/RocketChat/react-native-ui-lib/tar.gz/5039b784028581159beef3a91be7f6ff3b9ca6c1"
|
resolved "https://codeload.github.com/RocketChat/react-native-ui-lib/tar.gz/19a93de50c89e5b8370c5bd35e1ed114c45ebf13"
|
||||||
dependencies:
|
dependencies:
|
||||||
babel-plugin-transform-inline-environment-variables "^0.0.2"
|
babel-plugin-transform-inline-environment-variables "^0.0.2"
|
||||||
color "^3.1.0"
|
color "^3.1.0"
|
||||||
|
|
Loading…
Reference in New Issue