microsoft / react-native-windows

A framework for building native Windows apps with React.
https://microsoft.github.io/react-native-windows/
Other
16.34k stars 1.14k forks source link

Support Nested Text Elements Inside of TextInput #5689

Open NickGerleman opened 4 years ago

NickGerleman commented 4 years ago

See TokenizedTextExample in TextInputSharedExamples.js. Nesting here seems supported by both Android + iOS and we currently just Yellowbox.

chrisglein commented 4 years ago

Works in Android with something like this:

      <TextInput>
        Hello <Text style={{fontSize: 24}}>embedded</Text> World!
      </TextInput>

Snack Didn't work the same in iOS (formatting didn't show). Or in Web (although it was having an issue with TextInput - may be possible).

This is going to be hard to implement in XAML for sure.