mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2025-12-23 22:18:36 -05:00
Use staging api for inatjs
This commit is contained in:
@@ -143,7 +143,6 @@ const createLinkedIdentifications = useCallback( ( obs ) => {
|
||||
const identifications = [];
|
||||
|
||||
if ( obs.identifications.length > 0 ) {
|
||||
console.log( obs.identifications.length, "ids length jest" );
|
||||
obs.identifications.forEach( ( id ) => {
|
||||
const linkedIdentification = createIdentificationForRealm( id );
|
||||
identifications.push( linkedIdentification );
|
||||
|
||||
8
index.js
8
index.js
@@ -5,15 +5,11 @@ import "react-native-gesture-handler";
|
||||
import {AppRegistry} from "react-native";
|
||||
import inatjs from "inaturalistjs";
|
||||
import App from "./navigation/stackNavigation";
|
||||
// import ObsList from "./components/Observations/ObsList";
|
||||
import {name as appName} from "./app.json";
|
||||
|
||||
inatjs.setConfig( {
|
||||
apiURL: "https://api.inaturalist.org/v2",
|
||||
writeApiURL: "https://api.inaturalist.org/v2"
|
||||
apiURL: "https://stagingapi.inaturalist.org/v2",
|
||||
writeApiURL: "https://stagingapi.inaturalist.org/v2"
|
||||
} );
|
||||
|
||||
// AppRegistry.registerComponent( appName, () => ObsList );
|
||||
|
||||
|
||||
AppRegistry.registerComponent( appName, ( ) => App );
|
||||
|
||||
Reference in New Issue
Block a user