فهرست منبع

android chat library fix

Viktoriia 6 ساعت پیش
والد
کامیت
ad9f5ac4c2
1فایلهای تغییر یافته به همراه1 افزوده شده و 14 حذف شده
  1. 1 14
      patches/react-native-gifted-chat+2.8.1.patch

+ 1 - 14
patches/react-native-gifted-chat+2.8.1.patch

@@ -21,7 +21,7 @@ index becd702..02ed162 100644
  const styles = StyleSheet.create({
      textInput: {
 diff --git a/node_modules/react-native-gifted-chat/lib/GiftedChat/index.js b/node_modules/react-native-gifted-chat/lib/GiftedChat/index.js
-index 4fc42d2..cd571f8 100644
+index 4fc42d2..073d537 100644
 --- a/node_modules/react-native-gifted-chat/lib/GiftedChat/index.js
 +++ b/node_modules/react-native-gifted-chat/lib/GiftedChat/index.js
 @@ -6,6 +6,7 @@ import { Platform, View, } from 'react-native';
@@ -44,16 +44,3 @@ index 4fc42d2..cd571f8 100644
                  maxLength: isTypingDisabled ? 0 : maxInputLength,
              },
          };
-@@ -279,9 +281,9 @@ function GiftedChat(props) {
-     </GiftedChatContext.Provider>);
- }
- function GiftedChatWrapper(props) {
--    return (<KeyboardProvider>
--      <GiftedChat {...props}/>
--    </KeyboardProvider>);
-+      return LocalPlatform.OS=='ios'? ( <KeyboardProvider>
-+               <GiftedChat {...props}/>
-+                </KeyboardProvider>):   <GiftedChat {...props}/>;
- }
- GiftedChatWrapper.append = (currentMessages = [], messages, inverted = true) => {
-     if (!Array.isArray(messages))