| /expo/docs/mdx-plugins/ |
| H A D | remark-link-rewrite.test.js | 11 const rewrite = (file, url) => { argument 14 linkRewrite()(tree, file); 19 const file = makeFile('index.mdx'); constant 34 const file = makeFile('index.mdx'); constant 40 expect(rewrite(file, './using-fcm.mdx#a-header')).toBe( 52 const file = makeFile('index.mdx'); constant 55 expect(rewrite(file, 'guides')).toBe('/guides'); 59 expect(rewrite(file, 'guides.mdx')).toBe('/guides/'); 95 expect(rewrite(file, '../')).toBe('/'); 99 expect(rewrite(file, '../index.mdx')).toBe('/'); [all …]
|
| /expo/packages/@expo/prebuild-config/src/plugins/__tests__/fixtures/ |
| H A D | react-native-project.ts | 63 function readFile(file: string) { 64 if (file.endsWith('.DS_Store')) return; 65 const p = path.join(template, file); 68 readFile(`${file}/${f}`); 71 if (file.match(/\.(png)$/)) { 73 files[file] = contents; 76 files[file] = contents; 81 fs.readdirSync(path.join(template, 'ios')).forEach((file) => { 82 readFile(`ios/${file}`); 84 fs.readdirSync(path.join(template, 'android')).forEach((file) => { [all …]
|
| /expo/packages/@expo/config-plugins/src/utils/ |
| H A D | modules.ts | 8 async function statAsync(file: string): Promise<fs.Stats | null> { 10 return await fs.promises.stat(file); 16 export async function fileExistsAsync(file: string): Promise<boolean> { 17 return (await statAsync(file))?.isFile() ?? false; 20 export async function directoryExistsAsync(file: string): Promise<boolean> { 21 return (await statAsync(file))?.isDirectory() ?? false; 24 export function fileExists(file: string): boolean { 26 return fs.statSync(file).isFile();
|
| /expo/tools/src/vendoring/ |
| H A D | legacy.ts | 65 await fs.remove(file); 139 console.log(file); 180 file 202 .map((file) => path.resolve(file)) 224 .map((file) => path.resolve(file)) 241 .map((file) => path.resolve(file)) 258 .map((file) => path.resolve(file)) 276 .map((file) => path.resolve(file)) 404 file, 770 file: string, [all …]
|
| /expo/tools/ |
| H A D | taskfile-swc.js | 8 task.plugin('swc', {}, function* (file, environment, { stripExtension } = {}) { argument 10 if (file.base.endsWith('.d.ts')) return; 33 const filePath = path.join(file.dir, file.base); 38 filename: path.join(file.dir, file.base), 44 const output = yield transform(file.data.toString('utf-8'), options); 45 const ext = path.extname(file.base); 51 file.base = file.base.replace(extRegex, stripExtension ? '' : '.js'); 55 const map = `${file.base}.map`; 62 dir: file.dir, 67 file.data = Buffer.from(output.code);
|
| /expo/packages/@expo/config-plugins/src/plugins/__tests__/fixtures/ |
| H A D | react-native-project.ts | 63 function readFile(file: string) { 64 const p = path.join(template, file); 67 readFile(`${file}/${f}`); 70 if (file.match(/\.(png)$/)) { 72 files[file] = contents; 75 files[file] = contents; 80 fs.readdirSync(path.join(template, 'ios')).forEach((file) => { 81 readFile(`ios/${file}`); 83 fs.readdirSync(path.join(template, 'android')).forEach((file) => { 84 readFile(`android/${file}`);
|
| /expo/packages/@expo/cli/ |
| H A D | taskfile-swc.js | 36 task.plugin('swc', {}, function* (file, environment, { stripExtension } = {}) { argument 38 if (file.base.endsWith('.d.ts')) return; 44 const filePath = path.join(file.dir, file.base); 49 filename: path.join(file.dir, file.base), 55 const output = yield transform(file.data.toString('utf-8'), options); 56 const ext = path.extname(file.base); 62 file.base = file.base.replace(extRegex, stripExtension ? '' : '.js'); 66 const map = `${file.base}.map`; 73 dir: file.dir, 78 file.data = Buffer.from(setVersionCode(output.code));
|
| /expo/packages/expo-modules-test-core/build/ |
| H A D | getStructure.js | 15 function getStructureFromFile(file) { argument 16 const command = 'sourcekitten structure --file ' + file.path; 50 function getIdentifierFromOffsetObject(offsetObject, file) { argument 52 return file.content 105 function getTypeFromOffsetObject(offsetObject, file) { argument 111 'key.sourcefile': file.path, 147 function findNamedDefinitionsOfType(type, moduleDefinition, file) { argument 170 function findAndParseView(moduleDefinition, file) { argument 194 function parseModuleDefinition(moduleDefinition, file) { argument 202 view: findAndParseView(moduleDefinition, file), [all …]
|
| /expo/packages/expo-modules-test-core/src/ |
| H A D | getStructure.ts | 21 function getStructureFromFile(file: FileType) { 22 const command = 'sourcekitten structure --file ' + file.path; 59 return file.content 120 function getTypeFromOffsetObject(offsetObject: Structure, file: FileType) { 126 'key.sourcefile': file.path, 177 types = getTypeFromOffsetObject(definitionParams[1], file); 194 file: FileType 226 file: FileType 235 view: findAndParseView(moduleDefinition, file), 243 const file = { path, content: fsNode.readFileSync(path, 'utf8') }; constant [all …]
|
| /expo/packages/@expo/cli/ts-declarations/xcode/ |
| H A D | index.d.ts | 257 addToPbxBuildFileSection(file: PBXFile): void; 268 addToPbxFileReferenceSection(file: any): void; 271 addToPluginsPbxGroup(file: unknown): void; 273 addToResourcesPbxGroup(file: unknown): void; 275 addToFrameworksPbxGroup(file: unknown): void; 279 addToProductsPbxGroup(file: unknown): void; 281 addToPbxSourcesBuildPhase(file: unknown): void; 356 addToFrameworkSearchPaths(file: unknown): void; 358 addToLibrarySearchPaths(file: unknown): void; 360 addToHeaderSearchPaths(file: unknown): void; [all …]
|
| /expo/packages/expo-updates/ts-declarations/xcode/ |
| H A D | index.d.ts | 257 addToPbxBuildFileSection(file: PBXFile): void; 268 addToPbxFileReferenceSection(file: any): void; 271 addToPluginsPbxGroup(file: unknown): void; 273 addToResourcesPbxGroup(file: unknown): void; 275 addToFrameworksPbxGroup(file: unknown): void; 279 addToProductsPbxGroup(file: unknown): void; 281 addToPbxSourcesBuildPhase(file: unknown): void; 356 addToFrameworkSearchPaths(file: unknown): void; 358 addToLibrarySearchPaths(file: unknown): void; 360 addToHeaderSearchPaths(file: unknown): void; [all …]
|
| /expo/tools/src/code-review/reviewers/ |
| H A D | reviewForbiddenFiles.ts | 22 diff.filter((file) => !file.deleted).map((file) => file.path) 26 .map((file) => { 30 if (IGNORED_PATHS.some((pattern) => minimatch(file.path, pattern))) { 34 const extname = path.extname(file.path).substr(1).toLowerCase(); 39 if (file.size > FILE_SIZE_LIMIT) { 40 const prettySize = prettyBytes(file.size); 47 return `- ${linkToFile(pullRequest.head, file.path)}\n - ${logs.join('\n - ')}`;
|
| /expo/packages/@expo/config-plugins/build/utils/ |
| H A D | modules.js | 22 async function statAsync(file) { argument 24 return await _fs().default.promises.stat(file); 29 async function fileExistsAsync(file) { argument 31 …return (_await$statAsync$isFi = (_await$statAsync = await statAsync(file)) === null || _await$stat… 33 async function directoryExistsAsync(file) { argument 35 …return (_await$statAsync$isDi = (_await$statAsync2 = await statAsync(file)) === null || _await$sta… 37 function fileExists(file) { argument 39 return _fs().default.statSync(file).isFile();
|
| /expo/packages/expo-updates/e2e/fixtures/ |
| H A D | E2ETestModule.swift | 31 let count = contents.filter { file in in definition() 32 return !(file.hasPrefix("expo-") && (file.hasSuffix(".db") || file.contains(".db-"))) in definition() 52 let files = contents.filter { file in in definition() 53 return !(file.hasPrefix("expo-") && (file.hasSuffix(".db") || file.contains(".db-"))) in definition() 56 for file in files { in definition() 57 let filePath = assetsFolder.appendingPathComponent(file).path in definition()
|
| /expo/ |
| H A D | .envrc | 14 file=./.envrc.local 15 if [[ -f "$file" ]]; then 16 source_env "$file" 18 watch_file "$file" 22 file=$1 23 if [[ -f "$file" ]] && head -1 "$file" | grep --quiet "#!"; then 24 source_env "$file" 26 watch_file "$file"
|
| /expo/packages/@expo/cli/src/customize/ |
| H A D | generate.ts | 24 (file) => !!TEMPLATES.find((template) => template.destination(props) === file) 29 (file) => !TEMPLATES.find((template) => template.destination(props) === file) 43 answer: files.map((file) => 44 TEMPLATES.findIndex((template) => template.destination(props) === file) 91 answer.map(async (file) => { 92 const template = TEMPLATES[file]; constant 101 return copyAsync(template.file(projectRoot), projectFilePath, { 110 .map((file) => TEMPLATES[file].dependencies)
|
| /expo/packages/@expo/cli/src/utils/ |
| H A D | dir.ts | 3 export function directoryExistsSync(file: string): boolean { 5 return fs.statSync(file)?.isDirectory() ?? false; 11 export async function directoryExistsAsync(file: string): Promise<boolean> { 12 return (await fs.promises.stat(file).catch(() => null))?.isDirectory() ?? false; 15 export async function fileExistsAsync(file: string): Promise<boolean> { 16 return (await fs.promises.stat(file).catch(() => null))?.isFile() ?? false;
|
| /expo/packages/@expo/cli/src/export/__tests__/ |
| H A D | exportHermes.test.ts | 57 const file = path.join(__dirname, 'fixtures', 'plain.js'); constant 95 const result = await isHermesBytecodeBundleAsync(file); 101 const result = await isHermesBytecodeBundleAsync(file); 166 mockFsExistSync.mockImplementation((file: string) => 167 Object.keys(fileContentMap).includes(file) 172 mockFsReadFile.mockImplementation((file: string) => { 174 if (file === fileName) { 238 mockFsExistSync.mockImplementation((file: string) => 239 Object.keys(fileContentMap).includes(file) 244 mockFsReadFile.mockImplementation((file: string) => { [all …]
|
| /expo/docs/pages/versions/unversioned/sdk/ |
| H A D | filesystem.mdx | 3 description: A library that provides access to the local file system on the device. 5 packageName: 'expo-file-system' 6 iconUrl: '/static/images/packages/expo-file-system.png' 23 src="/static/images/sdk/file-system/file-system-diagram.png" 107 dependencies={['expo-file-system']} 115 import * as FileSystem from 'expo-file-system'; 142 // Returns URI to our local gif file 204 import * as FileSystem from 'expo-file-system'; 225 <APISection packageName="expo-file-system" apiName="FileSystem" /> 237 …file:///`,<br/>[SAF URI](#saf-uri)<br/><br/>Destination:<br/>`file://` … [all …]
|
| /expo/docs/pages/versions/v49.0.0/sdk/ |
| H A D | filesystem.mdx | 3 description: A library that provides access to the local file system on the device. 5 packageName: 'expo-file-system' 6 iconUrl: '/static/images/packages/expo-file-system.png' 23 src="/static/images/sdk/file-system/file-system-diagram.png" 107 dependencies={['expo-file-system']} 115 import * as FileSystem from 'expo-file-system'; 142 // Returns URI to our local gif file 204 import * as FileSystem from 'expo-file-system'; 225 <APISection packageName="expo-file-system" apiName="FileSystem" /> 237 …file:///`,<br/>[SAF URI](#saf-uri)<br/><br/>Destination:<br/>`file://` … [all …]
|
| /expo/docs/pages/versions/v48.0.0/sdk/ |
| H A D | filesystem.mdx | 3 description: A library that provides access to the local file system on the device. 5 packageName: 'expo-file-system' 6 iconUrl: '/static/images/packages/expo-file-system.png' 23 src="/static/images/sdk/file-system/file-system-diagram.png" 107 dependencies={['expo-file-system']} 115 import * as FileSystem from 'expo-file-system'; 142 // Returns URI to our local gif file 204 import * as FileSystem from 'expo-file-system'; 225 <APISection packageName="expo-file-system" apiName="FileSystem" /> 237 …file:///`,<br/>[SAF URI](#saf-uri)<br/><br/>Destination:<br/>`file://` … [all …]
|
| /expo/docs/pages/versions/v47.0.0/sdk/ |
| H A D | filesystem.mdx | 3 description: A library that provides access to the local file system on the device. 5 packageName: 'expo-file-system' 6 iconUrl: '/static/images/packages/expo-file-system.png' 24 src="/static/images/sdk/file-system/file-system-diagram.png" 108 dependencies={['expo-file-system']} 116 import * as FileSystem from 'expo-file-system'; 143 // Returns URI to our local gif file 217 import * as FileSystem from 'expo-file-system'; 238 <APISection packageName="expo-file-system" apiName="FileSystem" /> 250 …file:///`,<br/>[SAF URI](#saf-uri)<br/><br/>Destination:<br/>`file://` … [all …]
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/Base/ |
| H A D | ABI49_0_0RCTJSStackFrame.m | 19 * func1@/path/to/file.js:2:18 20 * func2@/path/to/file.js:6:8 22 * global code@/path/to/file.js:13:5 27 * at func1 (/path/to/file.js:2:18) 28 * at func2 (/path/to/file.js:6:8) 30 * at global (/path/to/file.js:13:5) 57 file:(NSString *)file 64 _file = file; 76 @"file" : ABI49_0_0RCTNullIfNil(self.file), 100 file:file [all …]
|
| /expo/ios/versioned-react-native/ABI48_0_0/ReactNative/React/Base/ |
| H A D | ABI48_0_0RCTJSStackFrame.m | 19 * func1@/path/to/file.js:2:18 20 * func2@/path/to/file.js:6:8 22 * global code@/path/to/file.js:13:5 27 * at func1 (/path/to/file.js:2:18) 28 * at func2 (/path/to/file.js:6:8) 30 * at global (/path/to/file.js:13:5) 57 file:(NSString *)file 64 _file = file; 76 @"file" : ABI48_0_0RCTNullIfNil(self.file), 100 file:file [all …]
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/React/Base/ |
| H A D | ABI47_0_0RCTJSStackFrame.m | 19 * func1@/path/to/file.js:2:18 20 * func2@/path/to/file.js:6:8 22 * global code@/path/to/file.js:13:5 27 * at func1 (/path/to/file.js:2:18) 28 * at func2 (/path/to/file.js:6:8) 30 * at global (/path/to/file.js:13:5) 57 file:(NSString *)file 64 _file = file; 76 @"file" : ABI47_0_0RCTNullIfNil(self.file), 100 file:file [all …]
|