Nowrap Text in React Native
1 min readDec 28, 2019
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>