-
Notifications
You must be signed in to change notification settings - Fork 133
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
11 changed files
with
675 additions
and
723 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,13 @@ | ||
import { registerRootComponent } from "expo"; | ||
// @generated by expo-yarn-workspaces | ||
|
||
import App from "./src/App"; | ||
import 'expo/build/Expo.fx' | ||
import { activateKeepAwake } from 'expo-keep-awake' | ||
import registerRootComponent from 'expo/build/launch/registerRootComponent' | ||
|
||
// registerRootComponent calls AppRegistry.registerComponent('main', () => App); | ||
// It also ensures that whether you load the app in the Expo client or in a native build, | ||
// the environment is set up appropriately | ||
registerRootComponent(App); | ||
import App from './App' | ||
|
||
if (__DEV__) { | ||
activateKeepAwake() | ||
} | ||
|
||
registerRootComponent(App) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,25 @@ | ||
/* eslint-disable @typescript-eslint/no-var-requires */ | ||
const { createMetroConfiguration } = require('expo-yarn-workspaces') | ||
// Learn more https://docs.expo.io/guides/customizing-metro | ||
/** | ||
* @type {import('expo/metro-config')} | ||
*/ | ||
const { getDefaultConfig } = require('expo/metro-config') | ||
const path = require('path') | ||
|
||
module.exports = createMetroConfiguration(__dirname) | ||
const projectRoot = __dirname | ||
const workspaceRoot = path.resolve(__dirname, '../..') | ||
|
||
const config = getDefaultConfig(__dirname) | ||
|
||
config.watchFolders = [workspaceRoot] | ||
config.resolver.nodeModulesPath = [ | ||
path.resolve(projectRoot, 'node_modules'), | ||
path.resolve(workspaceRoot, 'node_modules'), | ||
] | ||
|
||
// config.transformer = { | ||
// ...config.transformer, | ||
// minifierPath: 'metro-minify-esbuild', | ||
// minifierConfig: {}, | ||
// } | ||
|
||
module.exports = config |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.