Nowrap Text in React Native

The only reason I use React Native is because of ability to unwrap text view with event listener.

In my application scenario, unwrapping text view with onpress event listener is the most important thing. Hacking native text views in Android and iOS requires more effort to look into documentation and testing which took several months for me.

The reason I didn’t want to try React Native was because it can’t compete at native level in every aspects such as security and performance but it can compete at UI design.

Here is the code:

<View style={{ flexDirection: "row" }}>   <Text>
This is a sentence.
</Text>
<Text onPress = {()=> action()}>
This is another.
</Text>
</View>

Don’t follow me. I wrote junks here. Follow me on Twitter instead.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store