question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

renderChatEmpty is flipped

See original GitHub issue

Issue Description

The empty chat view that is generated by renderChatEmpty is flipped.

Steps to Reproduce / Code Snippets

private renderChatEmpty() {
    return (
      <View
        style={{
          flex: 1,
          alignSelf: 'center',
          justifyContent: 'center'
        }}
      >
        <Text> Say hello to your buddy</Text>
      </View>
    );
  }

Screenshot 2020-05-03 at 17 50 31

[FILL THIS OUT]

Expected Results

To see the view as returned in the function 🙂

Additional Information

A temporary “fix” is to add transform: [{ scaleY: -1 }] in the empty view style.

  • React Native version: 0.61.5
  • react-native-gifted-chat version: 0.13.0
  • Platform(s) (iOS, Android, or both?): iOS (at least)

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Reactions:12
  • Comments:8

github_iconTop GitHub Comments

3reactions
alecdewitzcommented, Dec 1, 2021

This worked for me

renderChatEmpty={() => (
        <View style={{ flex: 1, justifyContent: 'center', alignItems: 'center' }}>
            <Text
              style={{
                transform: [{ scaleY: -1 }],
              }}>
              No messages yet
            </Text>
        </View>
      )}
0reactions
BLOCKMATERIALcommented, Sep 23, 2021

Problem actually!

Read more comments on GitHub >

github_iconTop Results From Across the Web

reactjs-simple-gifted-chat - npm package - Snyk
Based on project statistics from the GitHub repository for the npm package reactjs-simple-gifted-chat, we found that it has been starred ? times ...
Read more >
netlify-cms Path Meta Field Is Required - JavaScript - GitAnswer
... open display - TypeScript OctoDash renderChatEmpty is flipped - react-native-gifted-chat vscode Intellisense autoimport of React components not working ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found