How to Add Apostrophe ‘ in Text in React Native

Having apostrophe or literals such as ‘, “, or > in your Text component value could break your code. Thus when you need to add such characters replace them as given in the list below:

  • > can be replaced with >
  • " can be replaced with "“" or ”
  • ' can be replaced with '‘' or ’
  • } can be replaced with }

For example, if you want to have a text let’s go then you have write it as follows:

<Text>let's go</Text>

I hope this small react native tutorial will help you.

Leave a Reply

%d bloggers like this: