Skip to content
Advertisement

Tag: react-native

Javascript Add Empty Line in to string

I’m trying to create a poem mobile app. I want to add an empty line to the string after each pair of four lines. poemValue input is like this. I’m trying to convert the above string to this with string functions: Here’s what I’ve tried so far. Add an empty line when the string line height becomes 5 or divisible

Advertisement