| /expo/docs/ui/components/Footer/ |
| H A D | utils.ts | 1 export function githubUrl(path: string) { 2 if (path === '/versions/latest' || path === '/versions/unversioned') { 4 } else if (path === '/eas' || path === '/eas/') { 5 path = '/eas/index'; 6 } else if (path === '/feature-preview' || path === '/feature-preview/') { 7 path = '/feature-preview/index'; 11 path = path.replace('/versions/latest/', '/versions/unversioned/'); 12 } else if (path.match(/v\d+\.\d+\.\d+\/?$/) || path === '/') { 13 if (path[path.length - 1] === '/') { 14 path = `${path}index`; [all …]
|
| /expo/docs/common/ |
| H A D | routes.ts | 7 path: string, 10 if (isReferencePath(path)) { 17 export const isArchivePath = (path: string) => { 29 export const isHomePath = (path: string) => { 50 if (isReferencePath(path)) { 52 } else if (isGeneralPath(path)) { 54 } else if (isFeaturePreviewPath(path)) { 56 } else if (isPreviewPath(path)) { 58 } else if (isArchivePath(path)) { 60 } else if (isLearnPath(path)) { [all …]
|
| H A D | error-utilities.ts | 69 function getVersionFromPath(path: string) { 70 const pathParts = path.split(/\//); 79 function isVersionDocumented(path: string) { 84 return !!path.match(/\.html$/); 87 function pathIncludesIndexHtml(path: string) { 88 return !!path.match(/index\.html$/); 97 function isVersionedPath(path: string) { 116 function pathRequiresVersioning(path: string) { 124 function removeVersionFromPath(path: string) { 129 function endsInNull(path: string) { [all …]
|
| /expo/packages/expo-router/src/fork/__tests__/ |
| H A D | getStateFromPath-upstream.test.node.ts | 13 route.path = path; 25 path: 'foo', 113 path, 147 path, 161 path: 'foo', 251 path: 'foo', 811 const path = ''; constant 817 const path = ''; constant 991 const path = ''; constant 1002 path: '/', [all …]
|
| H A D | getPathFromState-upstream.test.node.ts | 527 path 604 path 682 path 745 path 809 path 887 path 967 path 1010 path 1056 path 1106 path [all …]
|
| H A D | getStateFromPath.test.node.ts | 37 ].forEach(([path, basePath, result]) => { 38 it(`strips basePath "${path}"`, () => { 52 const path = '/expo/prefix/bar'; constant 71 const path = '/bar'; constant 83 it(`returns the pathname for ${path}`, () => { 84 expect(getUrlWithReactNavigationConcessions(path).nonstandardPathname).toBe(path); 132 path: '/hello', 144 path: '/hello', 163 path: '/hello%20world', 175 path: '/hello%20world', [all …]
|
| /expo/tools/src/ |
| H A D | Packages.ts | 3 import path from 'path'; 87 path: string; property in Package 93 this.path = rootPath; 99 return fs.pathExistsSync(path.join(this.path, 'plugin')); 125 cwd: this.path, 162 path.join(this.path, this.androidSubdirectory, 'build.gradle'), 174 path.join(this.path, this.androidSubdirectory, 'build.gradle'), 182 return path.join(this.path, 'CHANGELOG.md'); 192 ...fs.readdirSync(path.join(this.path, this.iosSubdirectory)), 193 ].some((path) => path.endsWith('.podspec')); [all …]
|
| H A D | Directories.ts | 1 import path from 'path'; 6 return process.env.EXPO_ROOT_DIR || path.join(__dirname, '..', '..'); 10 return path.join(getExpoRepositoryRootDir(), 'home'); 14 return path.join(getExpoRepositoryRootDir(), 'tools'); 18 return path.join(getExpotoolsDir(), 'bin'); 22 return path.join(getExpoRepositoryRootDir(), 'packages'); 26 return path.join(getExpoRepositoryRootDir(), 'ios'); 30 return path.join(getExpoRepositoryRootDir(), 'android'); 34 return path.join(getExpoRepositoryRootDir(), 'templates'); 42 return path.join(getIosDir(), 'versioned-react-native'); [all …]
|
| /expo/packages/@expo/prebuild-config/src/plugins/unversioned/expo-splash-screen/ |
| H A D | withAndroidSplashImages.ts | 5 import path from 'path'; 22 path: string; 31 path: `./res/drawable/${SPLASH_SCREEN_FILENAME}`, 34 path: `./res/drawable-night/${SPLASH_SCREEN_FILENAME}`, 42 path: `./res/drawable-mdpi/${SPLASH_SCREEN_FILENAME}`, 53 path: `./res/drawable-hdpi/${SPLASH_SCREEN_FILENAME}`, 64 path: `./res/drawable-xhdpi/${SPLASH_SCREEN_FILENAME}`, 75 path: `./res/drawable-xxhdpi/${SPLASH_SCREEN_FILENAME}`, 164 const outputPath = path.join( 167 DRAWABLES_CONFIGS[imageKey].modes[theme].path [all …]
|
| /expo/packages/expo-file-system/ios/ |
| H A D | FileSystemHelpers.swift | 8 if !FileManager.default.fileExists(atPath: directoryPath.path) { in ensureFileDirectoryExists() 9 throw DirectoryNotExistsException(directoryPath.path) in ensureFileDirectoryExists() 14 let file = FileHandle(forReadingAtPath: path) in readFileAsBase64() 17 throw FileNotExistsException(path) in readFileAsBase64() 33 throw FileWriteFailedException(path) in writeFileAsBase64() 38 if FileManager.default.fileExists(atPath: path) { in removeFile() 40 try FileManager.default.removeItem(atPath: path) in removeFile() 42 throw FileCannotDeleteException(path) in removeFile() 46 throw FileCannotDeleteException(path) in removeFile() 47 .causedBy(FileNotExistsException(path)) in removeFile() [all …]
|
| /expo/packages/expo-linking/src/__tests__/__snapshots__/ |
| H A D | Linking-test.ts.snap.web | 59 "path": "", 79 "path": "test/path", 110 "path": "--/test/path", 132 "path": "@test/test/--/test/path", 141 "path": "@test/test/--/test/path", 152 "path": "test/path", 161 "path": "test/path", 172 "path": "test/path", 183 "path": "test/path", 194 "path": "test/path", [all …]
|
| H A D | Linking-test.ts.snap.android | 59 "path": "", 68 "path": "", 79 "path": "test/path", 110 "path": "--/test/path", 132 "path": "test/path", 141 "path": "test/path", 152 "path": "test/path", 161 "path": "test/path", 172 "path": "test/path", 183 "path": "test/path", [all …]
|
| H A D | Linking-test.ts.snap.ios | 59 "path": "", 68 "path": "", 79 "path": "test/path", 110 "path": "--/test/path", 132 "path": "test/path", 141 "path": "test/path", 152 "path": "test/path", 161 "path": "test/path", 172 "path": "test/path", 183 "path": "test/path", [all …]
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/scripts/__tests__/ |
| H A D | hermes-utils-test.js | 10 import * as path from 'path'; 30 const ROOT_DIR = path.normalize(path.join(__dirname, '..', '..')); 31 const SDKS_DIR = path.join(ROOT_DIR, 'sdks'); 55 fs.mkdirSync(path.join(SDKS_DIR, 'hermes', 'utils'), { 66 fs.mkdirSync(path.join(SDKS_DIR, 'hermes-engine', 'utils'), { 70 path.join( 80 path.join( 90 path.join( 142 fs.readFileSync(path.join(SDKS_DIR, '.hermesversion'), { 263 fs.mkdirSync(path.join(SDKS_DIR, 'hermesc', 'osx-bin'), { [all …]
|
| /expo/packages/expo-linking/build/ |
| H A D | createURL.js | 73 if (path) { 75 path = `/--/${removeLeadingSlash(path)}`; 78 path = `/${path}`; 82 path = ''; 126 let path = parsed.pathname || null; 133 if (path) { 134 path = removeLeadingSlash(path); 141 path = path.substring(expoPrefix.length); 144 else if (path.indexOf('+') > -1) { 145 path = path.substring(path.indexOf('+') + 1); [all …]
|
| /expo/packages/expo-linking/src/ |
| H A D | createURL.ts | 77 path: string, 88 if (path) { 90 path = `/--/${removeLeadingSlash(path)}`; 93 path = `/${path}`; 96 path = ''; 149 let path = parsed.pathname || null; 158 if (path) { 159 path = removeLeadingSlash(path); 168 path = path.substring(expoPrefix.length); 171 path = path.substring(path.indexOf('+') + 1); [all …]
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/scripts/hermes/__tests__/ |
| H A D | hermes-utils-test.js | 10 import * as path from 'path'; 36 const ROOT_DIR = path.normalize(path.join(__dirname, '../../..')); 37 const SDKS_DIR = path.join(ROOT_DIR, 'sdks'); 87 fs.mkdirSync(path.join(options.cwd, destination), { 122 const frameworksDir = path.join( 214 path.join( 375 const tarballFilename = path.join( 380 path.join(SDKS_DIR, 'hermes/destroot'), 404 path.join(os.tmpdir(), 'hermes-prebuilts-'), 412 path.join(SDKS_DIR, 'hermes'), [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/scripts/hermes/__tests__/ |
| H A D | hermes-utils-test.js | 10 import * as path from 'path'; 36 const ROOT_DIR = path.normalize(path.join(__dirname, '../../..')); 37 const SDKS_DIR = path.join(ROOT_DIR, 'sdks'); 87 fs.mkdirSync(path.join(options.cwd, destination), { 122 const frameworksDir = path.join( 214 path.join( 375 const tarballFilename = path.join( 380 path.join(SDKS_DIR, 'hermes/destroot'), 404 path.join(os.tmpdir(), 'hermes-prebuilts-'), 412 path.join(SDKS_DIR, 'hermes'), [all …]
|
| /expo/packages/expo-test-runner/build/ |
| H A D | ConfigReader.js | 5 path; field in ConfigReader 6 constructor(path) { argument 7 this.path = path; 10 return require(this.path); 12 static getFilePath(path) { argument 13 return path ? path : (0, path_1.join)(process.cwd(), 'test-runner.config.js');
|
| /expo/packages/html-elements/ |
| H A D | babel.js | 60 function replaceElement(path, state) { argument 82 if (path.has('closingElement')) { 90 JSXElement(path, state) { argument 91 replaceElement(path, state); 92 path.traverse(jsxElementVisitor, state); 97 JSXElement(path, state) { argument 98 replaceElement(path, state); 103 ImportDeclaration(path, state) { argument 107 path 113 path.pushContainer( [all …]
|
| /expo/packages/expo-updates/e2e/fixtures/project_files/scripts/ |
| H A D | generate-test-update-bundles.js | 4 const path = require('path'); constant 6 const projectRoot = path.resolve(__dirname, '..'); 33 await fs.rename(path.join(projectRoot, 'dist'), path.join(projectRoot, 'updates')); 35 const testUpdateBundlesPath = path.join(projectRoot, 'test-update-bundles'); 38 const appJsPath = path.join(projectRoot, 'App.tsx'); 51 path.join(projectRoot, 'dist', 'metadata.json'), 57 const iosBundleDestPath = path.join(testUpdateBundlesPath, path.basename(iosBundlePath)); 58 const androidBundleDestPath = path.join( 60 path.basename(androidBundlePath) 65 ios: path.basename(iosBundlePath), [all …]
|
| /expo/packages/expo-router/src/link/ |
| H A D | path.ts | 24 function assertPath(path: string) { 25 if (typeof path !== 'string') { 37 for (let i = 0; i <= path.length; ++i) { 38 if (i < path.length) { 39 code = path.charCodeAt(i); 104 let path; 106 path = segments[i]; 108 path = '/'; 111 assertPath(path); 114 if (path.length === 0) { [all …]
|
| /expo/packages/expo-dev-client/ |
| H A D | test-runner.config.js | 18 path: '../expo', property 22 path: '../expo-modules-core', property 26 path: '../expo-modules-autolinking', property 30 path: '../expo-dev-client', property 34 path: '../expo-dev-launcher', property 38 path: '../expo-dev-menu', property 42 path: '../expo-dev-menu-interface', property 46 path: '../expo-manifests', property 50 path: '../expo-updates-interface', property
|
| /expo/ios/versioned-react-native/ABI49_0_0/Expo/ExpoKit/Core/Api/Components/Maps/ |
| H A D | ABI49_0_0AIRMapUrlTileCachedOverlay.m | 27 NSInteger zoomLevelToStart = (path.z > maximumZ) ? maximumZ - 1 : path.z - 1; 38 NSInteger overZoomLevel = path.z - maximumZ; 40 [self getTileImage:path result:result]; 47 parentTile.x = path.x >> overZoomLevel; 48 parentTile.y = path.y >> overZoomLevel; 49 parentTile.z = path.z - overZoomLevel; 50 parentTile.contentScaleFactor = path.contentScaleFactor; 52 NSInteger xOffset = path.x % zoomFactor; 53 NSInteger yOffset = path.y % zoomFactor; 140 NSLog(@"tileCache HIT for %d_%d_%d", (int)path.z, (int)path.x, (int)path.y); [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/Expo/ExpoKit/Core/Api/Components/Maps/ |
| H A D | ABI48_0_0AIRMapUrlTileCachedOverlay.m | 27 NSInteger zoomLevelToStart = (path.z > maximumZ) ? maximumZ - 1 : path.z - 1; 38 NSInteger overZoomLevel = path.z - maximumZ; 40 [self getTileImage:path result:result]; 47 parentTile.x = path.x >> overZoomLevel; 48 parentTile.y = path.y >> overZoomLevel; 49 parentTile.z = path.z - overZoomLevel; 50 parentTile.contentScaleFactor = path.contentScaleFactor; 52 NSInteger xOffset = path.x % zoomFactor; 53 NSInteger yOffset = path.y % zoomFactor; 140 NSLog(@"tileCache HIT for %d_%d_%d", (int)path.z, (int)path.x, (int)path.y); [all …]
|