Add base64 upload support
This commit is contained in:
@@ -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"} />} />
|
||||
}
|
||||
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user