mirror of
https://github.com/inaturalist/iNaturalistReactNative.git
synced 2026-05-06 22:56:12 -04:00
* Add alias and update eslint/flow to resolve modules * Update aliases for components and api * Add other src directories to module resolver aliases
23 lines
556 B
JavaScript
23 lines
556 B
JavaScript
// @flow
|
|
|
|
import "react-native-gesture-handler";
|
|
import "i18n";
|
|
|
|
import inatjs from "inaturalistjs";
|
|
import { AppRegistry } from "react-native";
|
|
import Config from "react-native-config";
|
|
import { startNetworkLogging } from "react-native-network-logger";
|
|
|
|
import { name as appName } from "./app.json";
|
|
import App from "./src/navigation/rootNavigation";
|
|
|
|
startNetworkLogging();
|
|
|
|
// Configure inatjs to use the chosen URLs
|
|
inatjs.setConfig( {
|
|
apiURL: Config.API_URL,
|
|
writeApiURL: Config.API_URL
|
|
} );
|
|
|
|
AppRegistry.registerComponent( appName, ( ) => App );
|