bekanur98
bekanur98

Reputation: 520

There is some problem with react-native-communications

I have used react-native-communications. And instead of space "%20" symbol.

I can't any helpful information in documentation of react-native-communications package

onTextPress() {
    const { phone, shift } = this.props

    Communications.text(phone, `Your up coming shift is on 
    ${shift}`)
  }

enter image description here

Upvotes: 0

Views: 288

Answers (1)

max23_
max23_

Reputation: 6689

According to the documentation, you have to use textWithoutEncoding() method instead of text().

From the author:

If you are going to use this method please be aware that if you have any text for your message body which needs to be encoded you are responsible for doing this yourself before passing the string to the method.

Upvotes: 1

Related Questions