This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// You need to set `window.navigator` to something in order to use the socket.io | |
// client. You have to do it like this in order to use the debugger because the | |
// debugger in React Native runs in a webworker and only has a getter method for | |
// `window.navigator`. | |
window.navigator.userAgent = 'ReactNative'; | |
// Need to require instead of import so we can set the user agent first | |
// This must be below your `window.navigator` hack above | |
const io = require('socket.io-client/socket.io'); | |
const socket = io('http://chat.feathersjs.com', { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{ | |
"aar": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] | |
}, | |
"aa": | |
{ | |
"int":["Afar"], | |
"native":["Afaraf"] |