Home
last modified time | relevance | path

Searched refs:orientation (Results 1 – 25 of 331) sorted by relevance

12345678910>>...14

/expo/packages/expo-screen-orientation/build/
H A DExpoScreenOrientation.web.js21 const orientation = Platform.canUseViewport constant
22 ? screen.orientation || screen.msOrientation || null
25 const [orientationLock, orientation] = await Promise.all([
31 orientationInfo: { orientation },
35 if (orientation && orientation.addEventListener) {
36 orientation.addEventListener('change', emitOrientationEvent);
58 if (screen.orientation && screen.orientation.lock) {
59 await screen.orientation.lock(webOrientationLock);
88 …const webOrientation = screen['msOrientation'] || (screen.orientation || screen['mozOrientation'] …
106 if (screen.orientation && screen.orientation.unlock) {
[all …]
/expo/packages/@expo/config-plugins/src/android/
H A DOrientation.ts14 return typeof config.orientation === 'string' ? config.orientation : null;
21 const orientation = getOrientation(config); constant
23 if (!orientation) {
30 orientation !== 'default' ? orientation : 'unspecified';
/expo/packages/@expo/config-plugins/src/ios/
H A DOrientation.ts16 return config.orientation ?? null;
29 function getUISupportedInterfaceOrientations(orientation: string | null): InterfaceOrientation[] {
30 if (orientation === 'portrait') {
32 } else if (orientation === 'landscape') {
43 const orientation = getOrientation(config); constant
47 UISupportedInterfaceOrientations: getUISupportedInterfaceOrientations(orientation),
/expo/packages/expo-screen-orientation/src/
H A DExpoScreenOrientation.web.ts36 const orientation: ScreenOrientation | null = Platform.canUseViewport constant
37 ? screen.orientation || (screen as any).msOrientation || null
41 const [orientationLock, orientation] = await Promise.all([ constant
47 orientationInfo: { orientation },
52 if (orientation && orientation.addEventListener) {
53 orientation.addEventListener('change', emitOrientationEvent);
80 if (screen.orientation && screen.orientation.lock) {
81 await screen.orientation.lock(webOrientationLock);
118 screen['msOrientation'] || (screen.orientation || screen['mozOrientation'] || {}).type;
136 if (screen.orientation && screen.orientation.unlock) {
[all …]
/expo/apps/native-component-list/src/screens/
H A DScreenOrientationScreen.tsx2 import * as ScreenOrientation from 'expo-screen-orientation';
9 orientation?: ScreenOrientation.Orientation;
28 orientation: orientationInfo.orientation,
38 const [orientation, orientationLock] = await Promise.all([
45 orientation,
121 return orientationOptions.map((orientation) => ({
122 key: ScreenOrientation.OrientationLock[orientation],
123 value: orientation,
128 const { orientation, orientationLock } = this.state;
132 {orientation !== undefined && (
[all …]
/expo/docs/pages/versions/v46.0.0/sdk/
H A Dscreen-orientation.mdx3 description: A universal library for managing a device's screen orientation.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-46/packages/expo-screen-orientation'
5 packageName: 'expo-screen-orientation'
14orientation in which graphics are painted on the device. For example, the figure below has a devic…
17 alt="Portrait orientation in different physical orientations."
18 src="/static/images/screen-orientation-portrait.jpg"
21 …rientations at runtime, and subscribing to orientation changes. This will take priority over the `
23orientation will override any system settings or user preferences. On Android, it is possible to c…
60 import * as ScreenOrientation from 'expo-screen-orientation';
63 <APISection packageName="expo-screen-orientation" apiName="ScreenOrientation" />
[all …]
/expo/packages/@expo/config-plugins/build/android/
H A DOrientation.js29 return typeof config.orientation === 'string' ? config.orientation : null;
32 const orientation = getOrientation(config);
34 if (!orientation) {
38 …mainActivity.$[SCREEN_ORIENTATION_ATTRIBUTE] = orientation !== 'default' ? orientation : 'unspecif…
/expo/packages/@expo/config-plugins/build/ios/
H A DOrientation.js24 …return (_config$orientation = config.orientation) !== null && _config$orientation !== void 0 ? _co…
30 function getUISupportedInterfaceOrientations(orientation) { argument
31 if (orientation === 'portrait') {
33 } else if (orientation === 'landscape') {
40 const orientation = getOrientation(config);
43 UISupportedInterfaceOrientations: getUISupportedInterfaceOrientations(orientation)
H A DOrientation.js.map1orientation","orientation","PORTRAIT_ORIENTATIONS","LANDSCAPE_ORIENTATIONS","getUISupportedInterfa…
/expo/docs/pages/versions/unversioned/sdk/
H A Dscreen-orientation.mdx3 description: A universal library for managing a device's screen orientation.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/main/packages/expo-screen-orientation'
5 packageName: 'expo-screen-orientation'
19orientation in which graphics are painted on the device. For example, the figure below has a devic…
22 alt="Portrait orientation in different physical orientations."
23 src="/static/images/screen-orientation-portrait.jpg"
26orientation will override any system settings or user preferences. On Android, it is possible to c…
61 "expo-screen-orientation",
79 …'Sets the iOS initial screen orientation. Possible values: `DEFAULT`, `ALL`, `PORTRAIT`, `PORTRAIT…
88 import * as ScreenOrientation from 'expo-screen-orientation';
[all …]
/expo/docs/pages/versions/v49.0.0/sdk/
H A Dscreen-orientation.mdx3 description: A universal library for managing a device's screen orientation.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-49/packages/expo-screen-orientation'
5 packageName: 'expo-screen-orientation'
19orientation in which graphics are painted on the device. For example, the figure below has a devic…
22 alt="Portrait orientation in different physical orientations."
23 src="/static/images/screen-orientation-portrait.jpg"
26orientation will override any system settings or user preferences. On Android, it is possible to c…
61 "expo-screen-orientation",
79 …'Sets the iOS initial screen orientation. Possible values: `DEFAULT`, `ALL`, `PORTRAIT`, `PORTRAIT…
88 import * as ScreenOrientation from 'expo-screen-orientation';
[all …]
/expo/docs/pages/versions/v48.0.0/sdk/
H A Dscreen-orientation.mdx3 description: A universal library for managing a device's screen orientation.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-48/packages/expo-screen-orientation'
5 packageName: 'expo-screen-orientation'
19orientation in which graphics are painted on the device. For example, the figure below has a devic…
22 alt="Portrait orientation in different physical orientations."
23 src="/static/images/screen-orientation-portrait.jpg"
26orientation will override any system settings or user preferences. On Android, it is possible to c…
61 "expo-screen-orientation",
88 import * as ScreenOrientation from 'expo-screen-orientation';
91 <APISection packageName="expo-screen-orientation" apiName="ScreenOrientation" />
[all …]
/expo/docs/pages/versions/v47.0.0/sdk/
H A Dscreen-orientation.mdx3 description: A universal library for managing a device's screen orientation.
4 sourceCodeUrl: 'https://github.com/expo/expo/tree/sdk-47/packages/expo-screen-orientation'
5 packageName: 'expo-screen-orientation'
19orientation in which graphics are painted on the device. For example, the figure below has a devic…
22 alt="Portrait orientation in different physical orientations."
23 src="/static/images/screen-orientation-portrait.jpg"
26orientation will override any system settings or user preferences. On Android, it is possible to c…
61 "expo-screen-orientation",
88 import * as ScreenOrientation from 'expo-screen-orientation';
91 <APISection packageName="expo-screen-orientation" apiName="ScreenOrientation" />
[all …]
/expo/android/vendored/sdk49/react-native-pager-view/android/src/main/java/abi49_0_0/com/reactnativepagerview/
H A DNestedScrollableHost.kt45 private fun canChildScroll(orientation: Int, delta: Float): Boolean { in canChildScroll()
47 return when (orientation) { in canChildScroll()
60 val orientation = parentViewPager?.orientation ?: return in handleInterceptTouchEvent() constant
63 if (!canChildScroll(orientation, -1f) && !canChildScroll(orientation, 1f)) { in handleInterceptTouchEvent()
74 val isVpHorizontal = orientation == ORIENTATION_HORIZONTAL in handleInterceptTouchEvent()
86 if (canChildScroll(orientation, if (isVpHorizontal) dx else dy)) { in handleInterceptTouchEvent()
/expo/android/vendored/unversioned/react-native-pager-view/android/src/main/java/com/reactnativepagerview/
H A DNestedScrollableHost.kt45 private fun canChildScroll(orientation: Int, delta: Float): Boolean { in canChildScroll()
47 return when (orientation) { in canChildScroll()
60 val orientation = parentViewPager?.orientation ?: return in handleInterceptTouchEvent() constant
63 if (!canChildScroll(orientation, -1f) && !canChildScroll(orientation, 1f)) { in handleInterceptTouchEvent()
74 val isVpHorizontal = orientation == ORIENTATION_HORIZONTAL in handleInterceptTouchEvent()
86 if (canChildScroll(orientation, if (isVpHorizontal) dx else dy)) { in handleInterceptTouchEvent()
/expo/android/vendored/sdk48/react-native-pager-view/android/src/main/java/abi48_0_0/com/reactnativepagerview/
H A DNestedScrollableHost.kt45 private fun canChildScroll(orientation: Int, delta: Float): Boolean { in canChildScroll()
47 return when (orientation) { in canChildScroll()
60 val orientation = parentViewPager?.orientation ?: return in handleInterceptTouchEvent() constant
63 if (!canChildScroll(orientation, -1f) && !canChildScroll(orientation, 1f)) { in handleInterceptTouchEvent()
74 val isVpHorizontal = orientation == ORIENTATION_HORIZONTAL in handleInterceptTouchEvent()
86 if (canChildScroll(orientation, if (isVpHorizontal) dx else dy)) { in handleInterceptTouchEvent()
/expo/packages/@expo/config-plugins/src/ios/__tests__/
H A DOrientation-test.ts14 expect(getOrientation({ orientation: 'portrait' })).toBe('portrait');
15 expect(getOrientation({ orientation: 'landscape' })).toBe('landscape');
19 expect(setOrientation({ orientation: 'portrait' }, {})).toMatchObject({
23 expect(setOrientation({ orientation: 'landscape' }, {})).toMatchObject({
/expo/android/versioned-abis/expoview-abi47_0_0/src/main/java/abi47_0_0/host/exp/exponent/modules/api/components/pagerview/
H A DNestedScrollableHost.kt45 private fun canChildScroll(orientation: Int, delta: Float): Boolean { in canChildScroll()
47 return when (orientation) { in canChildScroll()
60 val orientation = parentViewPager?.orientation ?: return in handleInterceptTouchEvent() constant
63 if (!canChildScroll(orientation, -1f) && !canChildScroll(orientation, 1f)) { in handleInterceptTouchEvent()
74 val isVpHorizontal = orientation == ORIENTATION_HORIZONTAL in handleInterceptTouchEvent()
86 if (canChildScroll(orientation, if (isVpHorizontal) dx else dy)) { in handleInterceptTouchEvent()
/expo/packages/expo-screen-orientation/ios/
H A DScreenOrientationModule.swift32 let orientation = allowedOrientation.toInterfaceOrientation() in definition() variable
33 let orientationMask = orientation.toInterfaceOrientationMask() in definition()
63 … allowedOrientations.append(ModuleOrientation.from(orientation: supportedOrientation).rawValue) in definition()
75 …return ModuleOrientation.from(orientation: screenOrientationRegistry.currentScreenOrientation).raw… in definition()
97 public func screenOrientationDidChange(_ orientation: UIInterfaceOrientation) { in screenOrientationDidChange()
105 "orientation": ModuleOrientation.from(orientation: orientation).rawValue, in screenOrientationDidChange()
/expo/ios/versioned/sdk49/ExpoScreenOrientation/
H A DScreenOrientationModule.swift32 let orientation = allowedOrientation.toInterfaceOrientation() in definition() variable
33 let orientationMask = orientation.toInterfaceOrientationMask() in definition()
63 … allowedOrientations.append(ModuleOrientation.from(orientation: supportedOrientation).rawValue) in definition()
75 …return ModuleOrientation.from(orientation: screenOrientationRegistry.currentScreenOrientation).raw… in definition()
97 public func screenOrientationDidChange(_ orientation: UIInterfaceOrientation) { in screenOrientationDidChange()
105 "orientation": ModuleOrientation.from(orientation: orientation).rawValue, in screenOrientationDidChange()
/expo/ios/versioned/sdk47/EXScreenOrientation/EXScreenOrientation/
H A DABI47_0_0EXScreenOrientationUtilities.h9 …(UIInterfaceOrientationMask)orientationMask containOrientation:(UIInterfaceOrientation)orientation;
12 + (UIInterfaceOrientationMask)maskFromOrientation:(UIInterfaceOrientation)orientation;
21 + (NSNumber *)exportOrientation:(UIInterfaceOrientation)orientation;
22 + (UIInterfaceOrientation)importOrientation:(NSNumber *)orientation;
/expo/ios/versioned/sdk48/EXScreenOrientation/EXScreenOrientation/
H A DABI48_0_0EXScreenOrientationUtilities.h9 …(UIInterfaceOrientationMask)orientationMask containOrientation:(UIInterfaceOrientation)orientation;
12 + (UIInterfaceOrientationMask)maskFromOrientation:(UIInterfaceOrientation)orientation;
21 + (NSNumber *)exportOrientation:(UIInterfaceOrientation)orientation;
22 + (UIInterfaceOrientation)importOrientation:(NSNumber *)orientation;
/expo/packages/expo-router/node/
H A DgetExpoConstantsManifest.js8 function ensurePWAorientation(orientation) { argument
9 if (orientation && typeof orientation === 'string') {
10 const webOrientation = orientation.toLowerCase();
62 const orientation = ensurePWAorientation(webManifest.orientation || appManifest.orientation);
109 orientation,
/expo/android/vendored/sdk47/react-native-reanimated/android/src/main/java/abi47_0_0/com/swmansion/reanimated/sensor/
H A DReanimatedSensorListener.java16 private float[] orientation = new float[3]; field in ReanimatedSensorListener
35 SensorManager.getOrientation(rotation, orientation); in onSensorChanged()
42 orientation[0], // yaw in onSensorChanged()
43 orientation[1], // pitch in onSensorChanged()
44 orientation[2] // roll in onSensorChanged()
/expo/android/vendored/sdk48/react-native-reanimated/android/src/main/java/abi48_0_0/com/swmansion/reanimated/sensor/
H A DReanimatedSensorListener.java16 private float[] orientation = new float[3]; field in ReanimatedSensorListener
35 SensorManager.getOrientation(rotation, orientation); in onSensorChanged()
42 orientation[0], // yaw in onSensorChanged()
43 orientation[1], // pitch in onSensorChanged()
44 orientation[2] // roll in onSensorChanged()

12345678910>>...14