From 03774a540f64310088e4649d5d3da1f00b5f949f Mon Sep 17 00:00:00 2001 From: Loewy Date: Wed, 7 Feb 2024 21:24:24 -0800 Subject: [PATCH] move App.tsx to src --- index.js | 2 +- package.json | 1 - App.tsx => src/App.tsx | 6 +++--- 3 files changed, 4 insertions(+), 5 deletions(-) rename App.tsx => src/App.tsx (63%) diff --git a/index.js b/index.js index 828b356..fc82eb1 100644 --- a/index.js +++ b/index.js @@ -1,6 +1,6 @@ import { registerRootComponent } from "expo"; -import App from "./App"; +import App from "./src/App"; // registerRootComponent calls AppRegistry.registerComponent('main', () => App); // It also ensures that whether you load the app in Expo Go or in a native build, diff --git a/package.json b/package.json index fa7eb0b..d0119c9 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,6 @@ { "name": "railbird-rn", "version": "1.0.0", - "main": "node_modules/expo/AppEntry.js", "scripts": { "start": "NODE_ENV=development && expo start", "start:android": "expo start --android", diff --git a/App.tsx b/src/App.tsx similarity index 63% rename from App.tsx rename to src/App.tsx index 04c1986..90c3150 100644 --- a/App.tsx +++ b/src/App.tsx @@ -1,7 +1,7 @@ import React from "react"; -import { AuthProvider } from "./src/context"; -import { ClientProvider } from "./src/graphql/client"; -import AppNavigator from "./src/navigation/app-navigator"; +import { AuthProvider } from "./context"; +import { ClientProvider } from "./graphql/client"; +import AppNavigator from "./navigation/app-navigator"; const App: React.FC = () => { return (