Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[iOS] - Some apps look for \n for new lines while others look for <br/> #1

Open
AustP opened this issue Oct 22, 2017 · 0 comments
Open

Comments

@AustP
Copy link

AustP commented Oct 22, 2017

My message contains new line characters \n in them. When I share on Android, the new lines are preserved. When I share on iOS however, the new lines are only preserved sometimes, depending on the app.

It looks like standard apps (Message, Notes, etc.) look for \n while non-standard apps (Hangouts, WhatsApp, etc.) look for <br/> to indicate a new line.

I don't really know the best way to handle this, but React Native is having a discussion about this over at facebook/react-native#14946.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant