Add base64 upload support

This commit is contained in:
John Lyon-Smith
2018-04-25 17:43:32 -07:00
parent 0184481a7f
commit 3ddb9ebc2d
11 changed files with 703 additions and 221 deletions

View File

@@ -3,5 +3,5 @@ import { Route, Redirect } from "react-router-native"
export const DefaultRoute = () => {
// NOTE: When working on the app, change this to the page you are working on
return <Route render={() => <Redirect to={"/home"} />} />
return <Route render={() => <Redirect to={"/workItem"} />} />
}

View File

@@ -7,10 +7,10 @@ export const config = {
googleGeocodeAPIKey: "AIzaSyCs4JVT6gysnY5dAJ7KjVJYeykLv_xz1GI",
googleGeocodeURL: "https://maps.googleapis.com/maps/api/geocode/json",
refererURL: "https://dar.kss.us.com",
//defaultUser: "john@lyon-smith.org",
defaultUser: "",
//minGPSAccuracy: 100,
minGPSAccuracy: 20,
defaultUser: "john@lyon-smith.org",
//defaultUser: "",
minGPSAccuracy: 100,
//minGPSAccuracy: 20,
minDistanceToItem: 10,
geocodeDelayMilliseconds: 500,
}

View File

@@ -41,11 +41,9 @@ export class PhotoPanel extends Component {
} else if (response.customButton) {
console.log("User tapped custom button: ", response.customButton)
} else {
let source = { uri: response.uri }
// You can also display the image using data:
// let source = { uri: 'data:image/jpeg;base64,' + response.data };
console.log(source)
console.log(response)
}
}
)