FaridSafi / react-native-gifted-chat

💬 The most complete chat UI for React Native
https://gifted.chat
MIT License
13.45k stars 3.54k forks source link

Text goes out of screen #1881

Closed kamalpandey closed 4 years ago

kamalpandey commented 4 years ago

Issue Description

When the keyboard text goes out of the screen

Expected Results

Text should be visible

Additional Information


import { GiftedChat} from "react-native-gifted-chat";
import KeyboardSpacer from "react-native-keyboard-spacer";

<SafeAreaView
        style={{ flex: 1, backgroundColor: Colors.white }}
      >
        <View style={{ flex: 1, backgroundColor: Colors.cardBg }}>
          <GiftedChat
            textInputProps={{
              autoFocus: Platform.OS === "ios"
            }}
            messages={this.state.messages}
            placeholder="Type your message"
            onSend={this.onSend}
            user={{
              _id: userResponse.data.attributes.user.id
            }}
            isAnimated
            renderBubble={this.handleRenderBubble}
            renderTime={this.handleRenderTime}
            renderLoading={() => <LoadingScreen />}
            parsePatterns={this.handleParsePatterns}
            // renderMessageText={this.handleMessageRender}
          />
        </View>

        {Platform.OS === "android" ? <KeyboardSpacer /> : null}
      </SafeAreaView>
stale[bot] commented 4 years ago

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.