Home
last modified time | relevance | path

Searched refs:platform (Results 1 – 25 of 1022) sorted by relevance

12345678910>>...41

/expo/packages/html-elements/src/primitives/
H A DView.tsx20 /** @platform web */
22 /** @platform web */
24 /** @platform web */
26 /** @platform web */
28 /** @platform web */
30 /** @platform web */
32 /** @platform web */
34 /** @platform web */
36 /** @platform web */
38 /** @platform web */
[all …]
H A DText.tsx21 /** @platform web */
23 /** @platform web */
25 /** @platform web */
27 /** @platform web */
29 /** @platform web */
31 /** @platform web */
33 /** @platform web */
43 /** @platform web */
45 /** @platform web */
48 /** @platform web */
[all …]
/expo/packages/@expo/cli/src/start/server/middleware/
H A DresolvePlatform.ts23 const platform = constant
25 return (Array.isArray(platform) ? platform[0] : platform) ?? null;
30 let platform = null;
33 platform = 'android';
36 platform = 'ios';
39 return platform;
43 export function assertMissingRuntimePlatform(platform?: any): asserts platform {
44 if (!platform) {
53 export function assertRuntimePlatform(platform: string): asserts platform is RuntimePlatform {
54 const stringifiedPlatform = String(platform);
[all …]
H A DManifestMiddleware.ts37 platform: string
57 platform: string
79 platform,
98 platform: encodeURIComponent(platform),
185 platform,
203 platform,
253 platform,
264 platform,
279 platform,
286 platform: encodeURIComponent(platform),
[all …]
H A DresolveEntryPoint.ts13 platform?: string,
18 resolveAbsoluteEntryPoint(projectRoot, platform, projectConfig)
25 platform?: string,
28 if (platform && !supportedPlatforms.includes(platform)) {
30 `Failed to resolve the project's entry file: The platform "${platform}" is not supported.`
/expo/packages/@expo/cli/src/export/
H A DresolveOptions.ts20 platform: string[] = ['all']
33 if (!platformsAvailable[platform]) {
40 return platform;
44 const assertPlatformIsKnown = (platform: string): Platform => {
45 if (!knownPlatforms.includes(platform as Platform)) {
51 return platform as Platform;
55 platform
57 .map((platform) => (platform === 'all' ? Object.keys(platformsAvailable) : platform))
60 .filter((platform, index, list) => list.indexOf(platform) === index)
62 .map((platform) => assertPlatformIsKnown(platform))
[all …]
H A DwriteContents.ts19 platform,
23 platform: string;
55 if (platform === 'web' && useServerRendering) {
61 platform,
66 hashes[platform] = hash;
67 fileNames[platform] = fileName;
75 platform: string;
107 const mapName = `${platform}-${hash}.map`;
111 fileNames?.[platform] ??
113 platform,
[all …]
/expo/packages/html-elements/build/primitives/
H A DView.js.map1platform web */\n backdropFilter?: string;\n /** @platform web */\n animationDelay?: string;\n …
H A DText.js.map1platform web */\n fontFeatureSettings?: string;\n /** @platform web */\n textIndent?: string;\n…
/expo/tools/src/commands/
H A DNativeUnitTests.ts11 platform,
15 platform?: PlatformName;
19 if (!platform) {
21 const result = await inquirer.prompt<{ platform: PlatformName }>([
30 platform = result.platform;
32 const runAndroid = platform === 'android' || platform === 'both';
33 const runIos = platform === 'ios' || platform === 'both';
H A DRemoveSDKVersion.ts16 platform: Platform;
22 async function getOldestOrAskForSDKVersionAsync(platform: Platform): Promise<string | undefined> {
23 const sdkVersions = await getSDKVersionsAsync(platform);
24 const defaultSdkVersion = await getOldestSDKVersionAsync(platform);
56 const { platform } = await inquirer.prompt<{ platform: Platform }>([ constant
66 return platform;
70 const platform = options.platform || (await askForPlatformAsync()); constant
73 (await getOldestOrAskForSDKVersionAsync(options.platform));
79 switch (platform) {
85 throw new Error(`Platform '${platform}' is not supported.`);
[all …]
H A DUpdateVendoredModule.ts31 platform: string;
99 for (const platform of platforms) { constant
100 if (!targetConfig.platforms[platform]) {
106 if (!targetConfig.modules[moduleName][platform]) {
121 chalk.yellow(platform),
129 await vendorPlatformAsync(platform, sourceDirectory, targetDirectory, moduleConfig[platform]);
259 function resolvePlatforms(platform: string): string[] {
261 return all.includes(platform) ? [platform] : all;
267 platform: string
279 if (platform !== 'android' && platform !== 'ios') {
[all …]
/expo/packages/expo-test-runner/src/
H A DregisterCommand.ts10 platform: Platform; property
15 function mapPlatform(platform: string): Platform {
16 if (platform === 'android') {
18 } else if (platform === 'ios') {
20 } else if (platform === 'both') {
24 throw new Error(`Unknown platform: ${platform}`);
41 if (providedOptions.platform) {
42 providedOptions.platform = mapPlatform(providedOptions.platform);
44 providedOptions.platform = Platform.Both;
/expo/packages/@expo/metro-config/src/transform-worker/__tests__/
H A Dtransform-worker.test.ts47 platform: 'web',
62 platform: 'web',
72 platform: 'web',
82 platform: 'ios',
94 platform: 'ios',
103 platform: 'ios',
113 platform: 'ios',
123 platform: 'ios',
134 platform: 'web',
143 platform: 'web',
[all …]
/expo/packages/@expo/cli/src/prebuild/
H A DvalidateTemplatePlatforms.ts17 for (const platform of platforms) { constant
18 if (await directoryExistsAsync(path.join(templateDirectory, platform))) {
19 existingPlatforms.push(platform);
22 …chalk`⚠️ Skipping platform ${platform}. Use a template that contains native files for ${platform}…
H A DclearNativeFolder.ts80 platforms.map(async (platform) => {
81 if (await directoryExistsAsync(path.join(projectRoot, platform))) {
82 return platform;
100 const checkablePlatforms = platforms.filter((platform) => platform in VERIFIERS);
104 checkPlatforms.map(async (platform) => {
105 if (!VERIFIERS[platform]) {
108 if (await VERIFIERS[platform](projectRoot)) {
111 return platform;
127 const displayPlatforms = platforms.map((platform) => chalk.cyan(platform));
/expo/apps/native-component-list/src/components/FunctionDemo/
H A DPlatforms.tsx13 function PlatformIndicator({ platform, textStyle }: { platform: Platform; textStyle?: TextStyle }) {
15 <View style={[styles.platform, styles[joinWithCamelCase(['platform', platform])]]}>
16 <Text style={[styles.platformText, textStyle]}>{platform}</Text>
32 {platforms.map((platform) => (
33 <PlatformIndicator key={platform} platform={platform} textStyle={textStyle} />
46 platform: {
/expo/tools/src/
H A DProjectVersions.ts54 export async function getSDKVersionsAsync(platform: Platform): Promise<string[]> {
57 platform === 'ios' ? 'ios/Exponent/Supporting' : 'android',
68 export async function getOldestSDKVersionAsync(platform: Platform): Promise<string | undefined> {
69 const sdkVersions = await getSDKVersionsAsync(platform);
74 const sdkVersions = await getSDKVersionsAsync(platform);
78 export async function getNextSDKVersionAsync(platform: Platform): Promise<string | undefined> {
79 const newestVersion = await getNewestSDKVersionAsync(platform);
92 platform: Platform
95 return await getNewestSDKVersionAsync(platform);
98 return await getOldestSDKVersionAsync(platform);
[all …]
/expo/tools/src/vendoring/devmenu/
H A DPipe.ts10 platform: Platform;
63 ...task.map((t) => ({ platform: currentPlatform, task: t }))
68 this.platformSpecificTasks.push({ platform: currentPlatform, task });
74 public async start(platform: Platform) {
75 logger.debug(`Staring pipe for platform = ${chalk.green(platform)}`);
83 const { platform: stepPlatform } = platformSpecificStep; constant
84 if (platform === 'all' || stepPlatform === 'all') {
88 if (platform === stepPlatform) {
/expo/packages/@expo/cli/src/start/server/metro/
H A DwithMetroMultiPlatform.ts223 if (platform && platform in aliases && aliases[platform][moduleName]) {
230 if (platform && platform in extraNodeModules) {
256 } else if (platform && platform in preferredMainFields) {
277 platform
321 platform === 'web' &&
357 platform,
377 platform: string | null,
381 platform === 'web' &&
392 platform: string | null;
398 input.platform === alias.platform &&
[all …]
/expo/packages/@expo/cli/src/utils/__tests__/
H A Dterminal-test.ts3 const platform = process.platform; constant
5 const mockPlatform = (value: typeof process.platform) =>
11 mockPlatform(platform);
48 for (const platform of ['darwin', 'win32'] as const) { constant
49 mockPlatform(platform);
54 for (const platform of ['darwin', 'win32'] as const) { constant
55 mockPlatform(platform);
/expo/packages/@expo/cli/src/run/
H A DensureNativeProject.ts11 { platform, install }: { platform: ModPlatform; install?: boolean }
15 await profile(promptToClearMalformedNativeProjectsAsync)(projectRoot, [platform]);
18 if (!fs.existsSync(path.join(projectRoot, platform))) {
21 platforms: [platform],
/expo/tools/src/dynamic-macros/
H A DgenerateDynamicMacros.ts45 async function generateMacrosAsync(platform, configuration) {
66 function getMacrosGeneratorForPlatform(platform) {
67 if (platform === 'ios') {
70 if (platform === 'android') {
73 throw new Error(`Platform '${platform}' is not supported.`);
86 const { platform, bareExpo } = args; constant
96 platform,
167 path.join(templateFilesPath, `${platform}-paths.json`)
177 chalk.cyan(path.join(templateFilesPath, platform, source))
186 chalk.cyan(path.join(templateFilesPath, platform, source)),
[all …]
/expo/home/graphql/queries/
H A DProjectQuery.query.graphql3 $platform: AppPlatform!
24 latestReleaseForReleaseChannel(platform: $platform, releaseChannel: "default") {
31 updates(limit: 1, offset: 0, filter: { platform: $platform, sdkVersions: $sdkVersions }) {
37 platform
/expo/packages/@expo/cli/src/start/server/metro/__tests__/
H A DwithMetroMultiPlatform.test.ts61 const platform = 'ios'; constant
63 modified.resolver.resolveRequest!(getDefaultRequestContext(), 'react-native', platform);
78 platform
92 const platform = 'ios'; constant
94 modified.resolver.resolveRequest!(getDefaultRequestContext(), 'react-native', platform);
105 platform
119 const platform = 'web'; constant
134 platform
148 const platform = 'web'; constant
158 platform
[all …]

12345678910>>...41