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.

Nesting View components inside Text components not working correctly 0.60-RC

See original GitHub issue

React Native version: System: OS: macOS High Sierra 10.13.6 CPU: (4) x64 Intel® Core™ i5-4278U CPU @ 2.60GHz Memory: 3.11 GB / 8.00 GB Shell: 3.2.57 - /bin/bash Binaries: Node: 10.9.0 - /usr/local/bin/node npm: 6.9.0 - /usr/local/bin/npm Watchman: 4.9.0 - /usr/local/bin/watchman SDKs: iOS SDK: Platforms: iOS 12.1, macOS 10.14, tvOS 12.1, watchOS 5.1 Android SDK: API Levels: 23, 26, 28 Build Tools: 23.0.1, 26.0.3, 27.0.3, 28.0.2 System Images: android-23 | Intel x86 Atom_64, android-23 | Google APIs Intel x86 Atom_64, android-28 | Google APIs Intel x86 Atom IDEs: Android Studio: 3.1 AI-173.4907809 Xcode: 10.1/10B61 - /usr/bin/xcodebuild npmPackages: react: 16.8.6 => 16.8.6 react-native: 0.60.0-rc.0 => 0.60.0-rc.0 npmGlobalPackages: create-react-native-app: 1.0.0 react-native-cli: 2.0.1

The following code produces the issue. Keep in minde that the example is simplified as much as possible and would not make sense to use anywhere in your project in this exact way.

    <Text>
        <View>
            <Text>Hello world!</Text>
        </View>
    </Text>

The code above does not display anything on the screen. Tested on 0.60RC0 and 0.60RC1, still does not work.

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
jpdrivercommented, Jun 18, 2019
0reactions
jobpaardekoopercommented, Jun 18, 2019

This: https://github.com/facebook/react-native/issues/25197#issuecomment-503028405 is exactly what is happening when I try this out.

https://github.com/facebook/react-native/commit/a2a03bc68ba062a96a6971d3791d291f49794dfd lists some known bug but it does not say anything about the issue described in https://github.com/facebook/react-native/issues/25197#issuecomment-503028405.

Should the ability to nest View components inside Text even be added in 0.60 at this stage? Especially if there are known bugs like these:

  • iOS bug: First update works but second update CRASHES the app.

I think a lot of people are going to get hung up on this stuff.

Thank you guys for the hard work it’s really appreciated!

cc: @kelset

Read more comments on GitHub >

github_iconTop Results From Across the Web

Nesting View components inside Text ... - Stack Overflow
I am using react-native v0.60.0 RC 0 and on the github release it says the following: "Enable views to be nested within Text...
Read more >
Create referece to items in list view on fly in functional ...
Coding example for the question Create referece to items in list view on fly in functional component React native-React Native.
Read more >
MantisBT - QElectroTech
Description: Text is not the same size when opening an existing drawing made on ... to remove original contacts or something and add...
Read more >
Phylogenetic systematics and historical biogeography of the ...
Band function and evolution 402. Species diversity and sampling efforts 403. Historical biogeography 405. Species assemblages 407. Historical ecology 407.
Read more >
An Improved Metric for Optimizing Detection of Resting-State ...
As predicted by the phantom, SFS—and not tSNR—is associated with enhanced sensitivity to both local and long-range connectivity within the.
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