| /expo/packages/expo-test-runner/build/ |
| H A D | Platform.js | 3 exports.Platform = void 0; 4 var Platform; variable 5 (function (Platform) { argument 6 Platform[Platform["iOS"] = 2] = "iOS"; 7 Platform[Platform["Android"] = 4] = "Android"; 8 Platform[Platform["Both"] = 6] = "Both"; 9 })(Platform || (exports.Platform = Platform = {}));
|
| H A D | TemplateFile.d.ts | 1 import { Platform } from './Platform'; 4 platform: Platform; 10 platform: Platform; 12 constructor(template: string, platform?: Platform, shouldBeEvaluated?: boolean); 18 platform: Platform; 20 constructor(userFilePath: string, platform?: Platform, shouldBeEvaluated?: boolean);
|
| /expo/packages/expo-modules-core/src/__tests__/ |
| H A D | Platform-test.ts | 1 import Platform from '../Platform'; 7 OS: Platform.OS, 9 isDOMAvailable: Platform.isDOMAvailable, 10 canUseEventListeners: Platform.canUseEventListeners, 11 canUseViewport: Platform.canUseViewport, 12 isNative: Platform.select({ native: true, default: false }), 13 isWeb: Platform.select({ web: true, default: false }),
|
| /expo/packages/expo-navigation-bar/build/ |
| H A D | NavigationBar.js | 42 if (Platform.OS !== 'android') { 59 if (Platform.OS !== 'android') { 75 if (Platform.OS !== 'android') { 92 if (Platform.OS !== 'android') { 108 if (Platform.OS !== 'android') { 124 if (Platform.OS !== 'android') { 140 if (Platform.OS !== 'android') { 156 if (Platform.OS !== 'android') { 179 if (Platform.OS !== 'android') { 199 if (Platform.OS !== 'android') { [all …]
|
| /expo/packages/expo-navigation-bar/src/ |
| H A D | NavigationBar.ts | 56 if (Platform.OS !== 'android') { 74 if (Platform.OS !== 'android') { 91 if (Platform.OS !== 'android') { 109 if (Platform.OS !== 'android') { 127 if (Platform.OS !== 'android') { 144 if (Platform.OS !== 'android') { 161 if (Platform.OS !== 'android') { 178 if (Platform.OS !== 'android') { 202 if (Platform.OS !== 'android') { 223 if (Platform.OS !== 'android') { [all …]
|
| /expo/packages/html-elements/build/elements/ |
| H A D | Layout.js | 2 import { Platform } from 'react-native'; 10 export const Nav = createView(Platform.select({ 15 export const Footer = createView(Platform.select({ 20 export const Aside = createView(Platform.select({ 25 export const Header = createView(Platform.select({ 33 export const Main = createView(Platform.select({ 38 export const Article = createView(Platform.select({
|
| /expo/packages/@expo/cli/src/export/ |
| H A D | resolveOptions.ts | 1 import { getConfig, Platform } from '@expo/config'; 8 platforms: Platform[]; 21 ): Platform[] { 32 const assertPlatformBundler = (platform: Platform): Platform => { 43 const knownPlatforms = ['android', 'ios', 'web'] as Platform[]; 44 const assertPlatformIsKnown = (platform: string): Platform => { 45 if (!knownPlatforms.includes(platform as Platform)) { 51 return platform as Platform;
|
| H A D | createBundles.ts | 1 import { getConfig, Platform, ProjectTarget } from '@expo/config'; 17 bundleOptions: { platforms: Platform[]; dev?: boolean; minify?: boolean } 18 ): Promise<Partial<Record<Platform, BundleOutput>>> { 34 bundleOptions.platforms.map((platform: Platform) => ({ 43 return bundleOptions.platforms.reduce<Partial<Record<Platform, BundleOutput>>>(
|
| /expo/packages/expo-test-runner/src/ |
| H A D | TemplateFile.ts | 5 import { Platform } from './Platform'; 9 platform: Platform; 17 public platform: Platform = Platform.Both, 47 public platform: Platform = Platform.Both, 70 return new TemplateFile(this.template, Platform.Both, shouldBeEvaluated); 74 return new TemplateFile(this.template, Platform.Android, shouldBeEvaluated); 78 return new TemplateFile(this.template, Platform.iOS, shouldBeEvaluated);
|
| H A D | registerCommand.ts | 6 import { Platform } from './Platform'; 10 platform: Platform; 15 function mapPlatform(platform: string): Platform { 17 return Platform.Android; 19 return Platform.iOS; 21 return Platform.Both; 44 providedOptions.platform = Platform.Both;
|
| /expo/apps/native-component-list/src/api/ |
| H A D | guid.ts | 3 import { Platform } from 'react-native'; 19 const BARE_GUIDs = Platform.select<Record<string, string>>(bareMap); 25 const GUID = Platform.select<string>(managedMap); 32 Platform.OS 40 Platform.OS 51 Platform.OS
|
| /expo/packages/html-elements/src/elements/ |
| H A D | Layout.tsx | 2 import { Platform } from 'react-native'; 15 Platform.select({ 22 Platform.select({ 29 Platform.select({ 36 Platform.select({ 46 Platform.select({ 53 Platform.select({
|
| /expo/packages/expo-tracking-transparency/build/ |
| H A D | TrackingTransparency.js | 2 import { Platform } from 'react-native'; 31 if (Platform.OS !== 'ios') { 56 if (Platform.OS !== 'ios') { 92 return (Platform.OS === 'ios' && 93 parseInt(Platform.Version.toString(), 10) >= 14 &&
|
| /expo/packages/expo-constants/src/ |
| H A D | ExponentConstants.web.ts | 1 import { Platform, uuid } from 'expo-modules-core'; 21 if (Platform.isDOMAvailable) { 71 return { web: Platform.isDOMAvailable ? { ua: navigator.userAgent } : undefined }; 74 if (!Platform.isDOMAvailable) return true; 86 if (Platform.isDOMAvailable) { 126 if (Platform.isDOMAvailable) { 136 if (Platform.isDOMAvailable) {
|
| /expo/tools/src/utils/ |
| H A D | askForPlatformAsync.ts | 3 import { Platform } from '../ProjectVersions'; 6 platforms: Platform[] = ['ios', 'android'] 7 ): Promise<Platform> { 16 const { platform } = await inquirer.prompt<{ platform: Platform }>([
|
| /expo/packages/jest-expo/tests/__tests__/ |
| H A D | jest-test.js | 4 const { Platform } = require('expo-modules-core'); 5 expect(OS).toContain(Platform.OS); 10 const { Platform } = require('expo-modules-core'); 11 expect(OS).toContain(Platform.OS);
|
| H A D | jest-test.node.js | 2 const { Platform } = require('expo-modules-core'); 3 expect(Platform.OS).toBe('web'); 4 expect(Platform.OS).toMatchSnapshot();
|
| H A D | jest-test.web.js | 2 const { Platform } = require('expo-modules-core'); 3 expect(Platform.OS).toBe('web'); 4 expect(Platform.OS).toMatchSnapshot();
|
| H A D | jest-test.ios.js | 2 const { Platform } = require('expo-modules-core'); 3 expect(Platform.OS).toBe('ios'); 4 expect(Platform.OS).toMatchSnapshot();
|
| /expo/packages/expo-screen-orientation/build/ |
| H A D | ScreenOrientation.js | 1 import { EventEmitter, Platform, UnavailabilityError } from 'expo-modules-core'; 49 if (Platform.OS === 'android' && screenOrientationConstantAndroid) { 55 else if (Platform.OS === 'ios' && screenOrientationArrayIOS) { 67 else if (Platform.OS === 'web' && screenOrientationLockWeb) { 123 if (Platform.OS === 'android') { 128 else if (Platform.OS === 'ios') { 133 else if (Platform.OS === 'web') { 162 return Platform.OS === 'ios' || Platform.OS === 'web' 184 if (Platform.OS === 'ios' || Platform.OS === 'web') {
|
| /expo/packages/expo-tracking-transparency/src/ |
| H A D | TrackingTransparency.ts | 9 import { Platform } from 'react-native'; 41 if (Platform.OS !== 'ios') { 68 if (Platform.OS !== 'ios') { 108 Platform.OS === 'ios' && 109 parseInt(Platform.Version.toString(), 10) >= 14 &&
|
| /expo/packages/expo-constants/build/ |
| H A D | ExponentConstants.web.js | 1 import { Platform, uuid } from 'expo-modules-core'; 6 if (Platform.isDOMAvailable) { 62 return { web: Platform.isDOMAvailable ? { ua: navigator.userAgent } : undefined }; 65 if (!Platform.isDOMAvailable) 77 if (Platform.isDOMAvailable) { 118 if (Platform.isDOMAvailable) { 129 if (Platform.isDOMAvailable) {
|
| /expo/packages/expo-screen-orientation/src/ |
| H A D | ScreenOrientation.ts | 1 import { EventEmitter, Platform, Subscription, UnavailabilityError } from 'expo-modules-core'; 81 if (Platform.OS === 'android' && screenOrientationConstantAndroid) { 88 } else if (Platform.OS === 'ios' && screenOrientationArrayIOS) { 104 } else if (Platform.OS === 'web' && screenOrientationLockWeb) { 165 if (Platform.OS === 'android') { 169 } else if (Platform.OS === 'ios') { 173 } else if (Platform.OS === 'web') { 207 return Platform.OS === 'ios' || Platform.OS === 'web' 232 if (Platform.OS === 'ios' || Platform.OS === 'web') {
|
| /expo/packages/expo-brightness/build/ |
| H A D | Brightness.js | 2 import { Platform } from 'react-native'; 72 if (Platform.OS !== 'android') { 93 if (Platform.OS !== 'android') { 113 if (Platform.OS !== 'android') { 127 if (Platform.OS !== 'android') { 141 if (Platform.OS !== 'android') { 154 if (Platform.OS !== 'android' || brightnessMode === BrightnessMode.UNKNOWN) {
|
| /expo/packages/expo-brightness/src/ |
| H A D | Brightness.ts | 11 import { Platform } from 'react-native'; 96 if (Platform.OS !== 'android') { 118 if (Platform.OS !== 'android') { 140 if (Platform.OS !== 'android') { 155 if (Platform.OS !== 'android') { 170 if (Platform.OS !== 'android') { 184 if (Platform.OS !== 'android' || brightnessMode === BrightnessMode.UNKNOWN) {
|