Improve surface detection and position of item

This commit is contained in:
John Lyon-Smith
2018-04-14 04:53:37 -07:00
parent 43d86d9f61
commit 9acc48f096
5 changed files with 171 additions and 65 deletions

View File

@@ -2,7 +2,7 @@ import EventEmitter from "eventemitter3"
import io from "socket.io-client"
import { AsyncStorage } from "react-native"
import autobind from "autobind-decorator"
import { local } from "./local"
import { localIPAddr } from "./development"
const authTokenKeyName = "AuthToken"
const backendKeyName = "Backend"
@@ -37,7 +37,7 @@ class API extends EventEmitter {
static urls = {
normal: "https://dar.kss.us.com/api",
test: "https://dar-test.kss.us.com/api",
local: `http://${local.ipAddr}:3001`,
local: `http://${localIPAddr || "localhost"}:3001`,
}
constructor() {