You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I have trouble passing the lint test due to error when I nest a Text component inside another Text component:
<View>
...
<Textstyle={styles.footnoteText}>{'*Only receipt scanning is available in the app.\n'}{'For other document types, please '}<Textstyle={styles.contactUsHyperlink}onPress={openURL}>{'contact us'}</Text>{'.'}</Text>
...
</View>
Error message:
error Raw text (*Only receipt scanning is available in the app.) cannot be used outside of a <Text> tag react-native/no-raw-text
The text was updated successfully, but these errors were encountered:
It is a bug of the underlying eslint-plugin-react-native. But it has not been updated for a while. I guess you can disable this rule on that line with // eslint-disable-next-line react-native/no-raw-text. For details, see Disabling rules. When I have time, I would drop eslint-plugin-react-native and adopt @react-native-community/eslint-config instead.
eslint-oursky/src/configs/reactnative.mjs
Line 7 in 0267bdb
I have trouble passing the lint test due to error when I nest a Text component inside another Text component:
Error message:
The text was updated successfully, but these errors were encountered: