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.

no-raw-text nested text issue

See original GitHub issue

On “eslint-plugin-react-native”: “3.9.1” there seems to be a false positive error/warning

<Text testID="OuterTestId">
	Message from
	<Text numberOfLines={1} ellipsizeMode="middle" style={styles.middleText}>
		{username}
	</Text>
</Text>

There seems to be a problem with Nested Text for this rule.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Reactions:20
  • Comments:6 (1 by maintainers)

github_iconTop GitHub Comments

4reactions
ejaincommented, Jun 9, 2021

Still present in 3.11.0. As a workaround, you can configure the rule with { "skip": [ "Text.Text" ] }] (add "Text.Text.Text" for two levels of nesting etc).

1reaction
DaniyarJakupovcommented, Mar 18, 2021

Still present in "eslint-plugin-react-native": "^3.10.0"

Read more comments on GitHub >

github_iconTop Results From Across the Web

XSL - How to ouput nested text-elements at the correct position
I need to transform the xml, because the original file does not seem to display any images. Is there any possibility I can...
Read more >
eslint-plugin-react-native - Bountysource
Seems to be something to do with nested text that has a function defined somewhere inside. In our case there's a reducer for...
Read more >
Solved: Nested Text.Contains based on "higher" column
Solved: Hi all, I have some dificulty with the following case. I hope you can help! Main goal of the case is to...
Read more >
ESLint & Prettierrc - Sumerian school
'object-curly-spacing': ['error', 'always'],. camelcase: 0,. 'no-nested-ternary': 0, ... 'react-native/no-raw-text': 0,. 'consistent-return': 0.
Read more >
@intlify/eslint-plugin-vue-i18n | Yarn - Package Manager
:bug: Bug Fixes · #315 Fix crash with null value in no-raw-text rule (@ota-meshi) · #313 Fix false positives in no-missing-keys (@ota-meshi) ·...
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