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.

Style variable name conflicting in Send and MessageText

See original GitHub issue

Issue Description

Conflict over the property: TextStyle as it modify both the text within the Bubble and the Text within the Send button.

Steps to Reproduce / Code Snippets

Pass the property TextStyle to GiftedChat. If it is passed so as to validate the properties of MessageText (i.e.: With a left and right), the Send button won’t be correctly displayed. On the other case, TextStyle is passed so as to modify the style of the Send button, it won’t validate and MessageText and ReactNative will throw an error.

Expected Results

Have two different style name for MessageText and Send so as to not have a conflict and be able to modify them independently.

Additional Information

  • React Native version: 0.34.1
  • react-native-gifted-chat version: 0.0.10
  • Platform(s) (iOS, Android, or both?): both

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
kfiroocommented, Jan 25, 2017

@jeromegrosse I would suggest you pass renderSend and render the Send component with the props you need.

0reactions
stale[bot]commented, May 19, 2019

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.

Read more comments on GitHub >

github_iconTop Results From Across the Web

ios - Variable name conflicts with function name leads to ...
will make the error go away but I am trying to understand why there is a conflict between variable name and method name...
Read more >
ISPF messages starting with ISP - IBM
Invalid variable name - aaaaaaaa is not a valid variable name for both ISPF and APL2. ... There is a name conflict with...
Read more >
Database Engine events and errors - SQL Server
Variable names must be unique within a query batch or stored procedure. ... Out of memory sending message for database "%.*ls".
Read more >
Groovy Goodness: Solve Naming Conflicts with Builders
To solve this naming conflict we can change the name of our local variable or method. But this is not always possible or...
Read more >
Global variables and namespace - Google Groups
I have been seeing that other libraries use a global namespace and then all the functionality is attached to this global name (e.g.,...
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