react-native-twilio-chat
react-native-twilio-chat copied to clipboard
Geting Network Error
When I enter the user name its redirects to my channel list but showing the msg network error and also channel is not created due to this issue.
The problem may occur when your device and PC/Laptop are on different network i.e Different IPs.
try changing
axios.get(
http://localhost/token/${username}).then((twilioUser) => {
to
axios.get(
http://{your computer IPV4}:3001/token/${username}).then((twilioUser) => {
in api-service.js
This solved my issue.