This file contains hidden or 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
import { SplashScreen } from "expo-router"; | |
import React, { Suspense, useEffect } from "react"; | |
import { Text, View } from "react-native"; | |
import * as Font from "expo-font"; | |
SplashScreen.preventAutoHideAsync(); | |
function SplashFallback() { |
This file contains hidden or 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
import { Storage } from "expo-sqlite/kv-store"; | |
// localStorage polyfill. Life's too short to not have some storage API. | |
if (typeof localStorage === "undefined") { | |
class StoragePolyfill { | |
/** | |
* Returns the number of key/value pairs. | |
* | |
* [MDN Reference](https://developer.mozilla.org/docs/Web/API/Storage/length) | |
*/ |
This file contains hidden or 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
"use client"; | |
import React from "react"; | |
import { View, StyleSheet, Animated, Easing, ViewStyle } from "react-native"; | |
const BASE_COLORS = { | |
dark: { primary: "rgb(17, 17, 17)", secondary: "rgb(51, 51, 51)" }, | |
light: { | |
primary: "rgb(250, 250, 250)", | |
secondary: "rgb(205, 205, 205)", |
This file contains hidden or 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
[...document.querySelectorAll('.notifications-list-item:has(.octicon-git-merge)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-skip)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-issue-closed)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-discussion-closed)'), ...document.querySelectorAll('.notifications-list-item:has(.octicon-git-pull-request-closed)')].forEach(el => el.querySelector('input').click()); setTimeout(() => document.querySelector('button[type="submit"][role="menuitem"][title="Done"].btn').click(), 200) |
This file contains hidden or 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
{ | |
"explorer.fileNesting.enabled": true, | |
"explorer.fileNesting.patterns": { | |
"*.js": "${capture}.js.map, ${capture}.d.ts, ${capture}.d.ts.map", | |
"*.ts": "$(capture).test.ts, $(capture).test.tsx, $(capture).test.node.ts, $(capture).test.node.tsx, $(capture).test.native.ts, $(capture).test.native.tsx, $(capture).test.ios.ts, $(capture).test.ios.tsx, $(capture).test.web.ts, $(capture).test.web.tsx, $(capture).test.android.ts, $(capture).test.android.tsx, ${capture}.native.tsx, ${capture}.ios.tsx, ${capture}.android.tsx, ${capture}.web.tsx, ${capture}.native.ts, ${capture}.ios.ts, ${capture}.android.ts, ${capture}.web.ts, ${capture}.native.js, ${capture}.ios.js, ${capture}.android.js, ${capture}.web.js, ${capture}.native.jsx, ${capture}.ios.jsx, ${capture}.android.jsx, ${capture}.web.jsx", | |
"*.tsx": "$(capture).test.ts, $(capture).test.tsx, $(capture).test.node.ts, $(capture).test.node.tsx, $(capture).test.native.ts, $(capture).test.native.tsx, $(capture).test.ios.ts, $(capture).test.ios.tsx, $(captur |
This file contains hidden or 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
// https://gist.github.com/EvanBacon/98858a341e2da209587455bbad465931 | |
const includesEverything = { | |
CFBundleDocumentTypes: [ | |
{ | |
CFBundleTypeExtensions: ["*"], | |
CFBundleTypeName: "All files", | |
CFBundleTypeOSTypes: ["*"], | |
}, | |
{ | |
CFBundleTypeExtensions: ["mov"], |
This file contains hidden or 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
const { createExoticTransformer } = require("@expo/metro-config/transformer"); | |
module.exports = createExoticTransformer({ | |
// Add realm packages to the list of modules to transpile locally. | |
transpileModules: ["@realm/", "realm"], | |
}); |
This file contains hidden or 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
import * as SystemUI from 'expo-system-ui'; | |
import * as React from 'react'; | |
import { Appearance, AppState, AppStateStatus, ColorSchemeName, ColorValue } from 'react-native'; | |
type ThemedColorValue = { light: ColorValue, dark: ColorValue }; | |
type Props = { backgroundColor: ColorValue | ThemedColorValue } | |
const propsStack: Props[] = []; |
This file contains hidden or 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
{ | |
"CFBundleDocumentTypes": [ | |
{ | |
"CFBundleTypeName": "Folder", | |
"CFBundleTypeRole": "Viewer", | |
"LSItemContentTypes": [ | |
"public.folder" | |
] | |
}, | |
{ |
This file contains hidden or 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
diff --git a/templates/expo-template-bare-minimum/android/app/src/main/AndroidManifest.xml b/templates/expo-template-bare-minimum/android/app/src/main/AndroidManifest.xml | |
index 136676d7c5..764b402b52 100644 | |
--- a/templates/expo-template-bare-minimum/android/app/src/main/AndroidManifest.xml | |
+++ b/templates/expo-template-bare-minimum/android/app/src/main/AndroidManifest.xml | |
@@ -8,25 +8,20 @@ | |
<uses-permission android:name="android.permission.READ_EXTERNAL_STORAGE"/> | |
<uses-permission android:name="android.permission.WRITE_EXTERNAL_STORAGE"/> | |
<!-- END OPTIONAL PERMISSIONS --> | |
- <application | |
- android:name=".MainApplication" |
NewerOlder