| /expo/packages/create-expo/src/ |
| H A D | Examples.ts | 87 export async function downloadAndExtractExampleAsync(root: string, name: string) { 88 const projectName = path.basename(root); 99 cwd: root, 108 await sanitizeTemplateAsync(root); 109 await sanitizeScriptsAsync(root); 112 function exampleHasNativeCode(root: string): boolean { 113 return [path.join(root, 'android'), path.join(root, 'ios')].some((folder) => 118 export async function sanitizeScriptsAsync(root: string) { 119 const defaultScripts = exampleHasNativeCode(root) 133 const packageFile = new JsonFile(path.join(root, 'package.json'));
|
| /expo/packages/create-expo/src/utils/ |
| H A D | git.ts | 6 export async function initGitRepoAsync(root: string) { 9 await spawnAsync('git', ['rev-parse', '--is-inside-work-tree'], { stdio: 'ignore', cwd: root }); 23 await spawnAsync('git', ['init'], { stdio: 'ignore', cwd: root }); 24 await spawnAsync('git', ['add', '-A'], { stdio: 'ignore', cwd: root }); 29 cwd: root,
|
| /expo/packages/@expo/fingerprint/src/sourcer/ |
| H A D | Bare.ts | 82 const { root } = config; constant 86 stripRncliAutolinkingAbsolutePaths(depData, root); 87 const filePath = depData.root; 106 function stripRncliAutolinkingAbsolutePaths(dependency: any, root: string): void { 107 assert(dependency.root); 108 const dependencyRoot = dependency.root; 109 dependency.root = path.relative(root, dependencyRoot); 112 platformData[key] = value.startsWith?.(dependencyRoot) ? path.relative(root, value) : value;
|
| /expo/ios/vendored/sdk48/react-native-reanimated/ios/Transitioning/ |
| H A D | ABI48_0_0REATransition.m | 74 forRoot:(UIView *)root 80 [self captureRecursiveIn:subview to:map forRoot:root]; 85 - (void)startCaptureInRoot:(UIView *)root 88 [self captureRecursiveIn:root to:_startValues forRoot:root]; 91 - (void)playInRoot:(UIView *)root 94 [self captureRecursiveIn:root to:_endValues forRoot:root]; 121 forRoot:(UIView *)root 135 fraction = values.centerRelativeToRoot.x / root.layer.bounds.size.width; 141 fraction = values.centerRelativeToRoot.y / root.layer.bounds.size.height; 167 forRoot:(UIView *)root [all …]
|
| H A D | ABI48_0_0REAAllTransitions.m | 56 forRoot:(UIView *)root 99 forRoot:(UIView *)root 157 startPosition.y -= root.frame.size.height; 160 startPosition.y += root.frame.size.height; 163 startPosition.x -= root.frame.size.width; 166 startPosition.x += root.frame.size.width; 228 finalPosition.y -= root.frame.size.height; 231 finalPosition.y += root.frame.size.height; 234 finalPosition.x -= root.frame.size.width; 237 finalPosition.x += root.frame.size.width; [all …]
|
| H A D | ABI48_0_0REATransitionValues.m | 8 - (instancetype)initWithView:(UIView *)view forRoot:(UIView *)root 14 while (_reactParent != nil && _reactParent != root && IS_LAYOUT_ONLY(_reactParent)) { 19 _centerRelativeToRoot = [_parent convertPoint:_center toView:root];
|
| H A D | ABI48_0_0REATransition.h | 51 - (void)startCaptureInRoot:(UIView *)root; 52 - (void)playInRoot:(UIView *)root; 57 forRoot:(UIView *)root; 61 forRoot:(UIView *)root;
|
| /expo/ios/vendored/sdk47/react-native-reanimated/ios/Transitioning/ |
| H A D | ABI47_0_0REATransition.m | 74 forRoot:(UIView *)root 80 [self captureRecursiveIn:subview to:map forRoot:root]; 85 - (void)startCaptureInRoot:(UIView *)root 88 [self captureRecursiveIn:root to:_startValues forRoot:root]; 91 - (void)playInRoot:(UIView *)root 94 [self captureRecursiveIn:root to:_endValues forRoot:root]; 121 forRoot:(UIView *)root 135 fraction = values.centerRelativeToRoot.x / root.layer.bounds.size.width; 141 fraction = values.centerRelativeToRoot.y / root.layer.bounds.size.height; 167 forRoot:(UIView *)root [all …]
|
| H A D | ABI47_0_0REAAllTransitions.m | 56 forRoot:(UIView *)root 99 forRoot:(UIView *)root 157 startPosition.y -= root.frame.size.height; 160 startPosition.y += root.frame.size.height; 163 startPosition.x -= root.frame.size.width; 166 startPosition.x += root.frame.size.width; 228 finalPosition.y -= root.frame.size.height; 231 finalPosition.y += root.frame.size.height; 234 finalPosition.x -= root.frame.size.width; 237 finalPosition.x += root.frame.size.width; [all …]
|
| H A D | ABI47_0_0REATransitionValues.m | 8 - (instancetype)initWithView:(UIView *)view forRoot:(UIView *)root 14 while (_reactParent != nil && _reactParent != root && IS_LAYOUT_ONLY(_reactParent)) { 19 _centerRelativeToRoot = [_parent convertPoint:_center toView:root];
|
| H A D | ABI47_0_0REATransition.h | 51 - (void)startCaptureInRoot:(UIView *)root; 52 - (void)playInRoot:(UIView *)root; 57 forRoot:(UIView *)root; 61 forRoot:(UIView *)root;
|
| /expo/packages/@expo/fingerprint/build/sourcer/ |
| H A D | Bare.js | 73 const { root } = config; 77 stripRncliAutolinkingAbsolutePaths(depData, root); 78 const filePath = depData.root; 96 function stripRncliAutolinkingAbsolutePaths(dependency, root) { argument 97 (0, assert_1.default)(dependency.root); 98 const dependencyRoot = dependency.root; 99 dependency.root = path_1.default.relative(root, dependencyRoot); 102 …platformData[key] = value.startsWith?.(dependencyRoot) ? path_1.default.relative(root, value) : va…
|
| /expo/packages/@expo/config-plugins/src/utils/ |
| H A D | plugin-resolver.ts | 13 function findUpPackageJson(root: string): string { 14 const packageJson = findUp.sync('package.json', { cwd: root }); 15 assert(packageJson, `No package.json found for module "${root}"`); 56 function resolveExpoPluginFile(root: string): string | null { 59 root, 71 function findUpPlugin(root: string): { filePath: string; isPluginFile: boolean } { 73 const packageJson = findUpPackageJson(root); 78 return { filePath: pluginFile ?? root, isPluginFile: !!pluginFile };
|
| /expo/packages/@expo/package-manager/src/utils/ |
| H A D | nodeManagers.ts | 50 const root = strategies[strategy](projectRoot); constant 51 if (root) { 52 return root; 68 const root = findWorkspaceRoot(projectRoot, preferredManager) ?? projectRoot; constant 77 if (fs.existsSync(path.join(root, lockFiles[preferredManager]))) { 85 if (fs.existsSync(path.join(root, lockFiles[managerName]))) {
|
| /expo/packages/expo-router/src/static/ |
| H A D | html.tsx | 5 * LICENSE file in the root directory of this source tree. 10 … root `<ScrollView />` should use the following styles to ensure native parity. [Learn more](https… 17 …__html: `#root,body{display:flex}#root,body,html{width:100%;-webkit-overflow-scrolling:touch;margi…
|
| /expo/packages/@expo/package-manager/build/utils/ |
| H A D | nodeManagers.js | 31 const root = strategies[strategy](projectRoot); 32 if (root) { 33 return root; 45 const root = findWorkspaceRoot(projectRoot, preferredManager) ?? projectRoot; 53 if (fs_1.default.existsSync(path_1.default.join(root, lockFiles[preferredManager]))) { 59 if (fs_1.default.existsSync(path_1.default.join(root, lockFiles[managerName]))) {
|
| /expo/packages/@expo/package-manager/src/node/ |
| H A D | BunPackageManager.ts | 10 const root = findYarnOrNpmWorkspaceRoot(this.ensureCwdDefined('workspaceRoot')); constant 11 if (root) { 16 cwd: root,
|
| H A D | PnpmPackageManager.ts | 11 const root = findPnpmWorkspaceRoot(this.ensureCwdDefined('workspaceRoot')); constant 12 if (root) { 17 cwd: root,
|
| /expo/packages/@expo/config-plugins/build/utils/ |
| H A D | plugin-resolver.js | 62 function findUpPackageJson(root) { argument 64 cwd: root 66 (0, _assert().default)(packageJson, `No package.json found for module "${root}"`); 104 function resolveExpoPluginFile(root) { argument 106 const pluginModuleFile = _resolveFrom().default.silent(root, 116 function findUpPlugin(root) { argument 118 const packageJson = findUpPackageJson(root); 124 filePath: pluginFile !== null && pluginFile !== void 0 ? pluginFile : root,
|
| /expo/apps/router-e2e/ |
| H A D | metro.config.js | 12 const root = path.join(projectRoot, '../..'); constant 14 config.watchFolders = [projectRoot, ...['packages', 'node_modules'].map((v) => path.join(root, v))]; 29 root: path.join( property
|
| /expo/packages/@expo/package-manager/build/node/ |
| H A D | BunPackageManager.js | 11 …const root = (0, nodeWorkspaces_1.findYarnOrNpmWorkspaceRoot)(this.ensureCwdDefined('workspaceRoot… 12 if (root) { 17 cwd: root,
|
| /expo/packages/@expo/cli/src/start/server/ |
| H A D | getStaticRenderFunctions.ts | 68 const root = getMetroServerRoot(projectRoot); constant 69 const requiredModuleId = getRenderModuleId(root); 74 if (path.relative(root, moduleId).startsWith('..')) { 78 return requireFileContentsWithMetro(root, devServerUrl, moduleId, { dev, minify, environment }); 105 const root = getMetroServerRoot(projectRoot); constant 107 const serverPath = path.relative(root, safeOtherFile).replace(/\.[jt]sx?$/, '.bundle'); 108 debug('fetching from Metro:', root, serverPath);
|
| /expo/docs/pages/ui-programming/ |
| H A D | react-native-toast.mdx | 75 ## Cross-platform: `react-native-root-toast` 79 [`react-native-root-toast`](https://github.com/magicismight/react-native-root-toast) is one such 88 …ve-root-toast`, you have to [install the module](https://github.com/magicismight/react-native-root… 90 Next, you must wrap the root component of your app with `<RootSiblingParent>` to allow toasts in any 94 import { RootSiblingParent } from 'react-native-root-siblings'; 98 <RootSiblingParent> // <- use RootSiblingParent to wrap your root component 104 Then, anywhere in your app, you can `import Toast from 'react-native-root-toast';` and call 119 `react-native-root-toast` also has a component API if you want to manage your toasts declaratively. 125 …the appearance and behavior](https://github.com/magicismight/react-native-root-toast#reference) of… 126 See the package [repository](https://github.com/magicismight/react-native-root-toast) to learn more.
|
| /expo/ios/versioned-react-native/ABI49_0_0/ReactNative/React/Fabric/Mounting/ComponentViews/Root/ |
| H A D | ABI49_0_0RCTRootComponentView.mm | 5 * LICENSE file in the root directory of this source tree. 10 #import <ABI49_0_0React/ABI49_0_0renderer/components/root/RootComponentDescriptor.h> 11 #import <ABI49_0_0React/ABI49_0_0renderer/components/root/RootProps.h>
|
| /expo/ios/versioned-react-native/ABI47_0_0/ReactNative/React/Fabric/Mounting/ComponentViews/Root/ |
| H A D | ABI47_0_0RCTRootComponentView.mm | 5 * LICENSE file in the root directory of this source tree. 10 #import <ABI47_0_0React/ABI47_0_0renderer/components/root/RootComponentDescriptor.h> 11 #import <ABI47_0_0React/ABI47_0_0renderer/components/root/RootProps.h>
|