react-native-screens 4.20.0-nightly-20251215-f65b107bd → 4.20.0-nightly-20251217-952b7cd54
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/commonjs/components/gamma/split/SplitHost.android.js +12 -0
- package/lib/commonjs/components/gamma/split/SplitHost.android.js.map +1 -0
- package/lib/commonjs/components/gamma/{split-view/SplitViewHost.js → split/SplitHost.js} +9 -9
- package/lib/commonjs/components/gamma/split/SplitHost.js.map +1 -0
- package/lib/commonjs/components/gamma/{split-view/SplitViewHost.types.js → split/SplitHost.types.js} +1 -1
- package/lib/commonjs/components/gamma/split/SplitHost.types.js.map +1 -0
- package/lib/commonjs/components/gamma/split/SplitHost.web.js +12 -0
- package/lib/commonjs/components/gamma/split/SplitHost.web.js.map +1 -0
- package/lib/commonjs/components/gamma/{split-view/SplitViewScreen.android.js → split/SplitScreen.android.js} +2 -2
- package/lib/commonjs/components/gamma/split/SplitScreen.android.js.map +1 -0
- package/lib/commonjs/components/gamma/{split-view/SplitViewScreen.js → split/SplitScreen.js} +3 -3
- package/lib/commonjs/components/gamma/split/SplitScreen.js.map +1 -0
- package/lib/commonjs/components/gamma/{split-view/SplitViewScreen.types.js → split/SplitScreen.types.js} +1 -1
- package/lib/commonjs/components/gamma/split/SplitScreen.types.js.map +1 -0
- package/lib/commonjs/components/gamma/split/SplitScreen.web.js +23 -0
- package/lib/commonjs/components/gamma/split/SplitScreen.web.js.map +1 -0
- package/lib/commonjs/components/gamma/split/index.js +44 -0
- package/lib/commonjs/components/gamma/split/index.js.map +1 -0
- package/lib/commonjs/components/gamma/stack/{ScreenStackHost.js → StackHost.js} +3 -3
- package/lib/commonjs/components/gamma/stack/StackHost.js.map +1 -0
- package/lib/commonjs/components/gamma/stack/{ScreenStackHost.types.js → StackHost.types.js} +1 -1
- package/lib/commonjs/components/gamma/stack/StackHost.types.js.map +1 -0
- package/lib/commonjs/components/gamma/stack/{ScreenStackHost.web.js → StackHost.web.js} +1 -1
- package/lib/commonjs/components/gamma/stack/StackHost.web.js.map +1 -0
- package/lib/commonjs/components/gamma/stack/index.js +53 -0
- package/lib/commonjs/components/gamma/stack/index.js.map +1 -0
- package/lib/commonjs/experimental/index.js +10 -26
- package/lib/commonjs/experimental/index.js.map +1 -1
- package/lib/commonjs/experimental/types.js +12 -12
- package/lib/commonjs/experimental/types.js.map +1 -1
- package/lib/module/components/gamma/split/SplitHost.android.js +6 -0
- package/lib/module/components/gamma/split/SplitHost.android.js.map +1 -0
- package/lib/module/components/gamma/{split-view/SplitViewHost.js → split/SplitHost.js} +9 -9
- package/lib/module/components/gamma/split/SplitHost.js.map +1 -0
- package/lib/module/components/gamma/split/SplitHost.types.js +2 -0
- package/lib/module/components/gamma/split/SplitHost.types.js.map +1 -0
- package/lib/module/components/gamma/split/SplitHost.web.js +6 -0
- package/lib/module/components/gamma/split/SplitHost.web.js.map +1 -0
- package/lib/module/components/gamma/split/SplitScreen.android.js +11 -0
- package/lib/module/components/gamma/split/SplitScreen.android.js.map +1 -0
- package/lib/module/components/gamma/{split-view/SplitViewScreen.js → split/SplitScreen.js} +3 -3
- package/lib/module/components/gamma/split/SplitScreen.js.map +1 -0
- package/lib/module/components/gamma/split/SplitScreen.types.js +2 -0
- package/lib/module/components/gamma/split/SplitScreen.types.js.map +1 -0
- package/lib/module/components/gamma/split/SplitScreen.web.js +17 -0
- package/lib/module/components/gamma/split/SplitScreen.web.js.map +1 -0
- package/lib/module/components/gamma/split/index.js +15 -0
- package/lib/module/components/gamma/split/index.js.map +1 -0
- package/lib/module/components/gamma/stack/{ScreenStackHost.js → StackHost.js} +3 -3
- package/lib/module/components/gamma/stack/StackHost.js.map +1 -0
- package/lib/module/components/gamma/stack/StackHost.types.js +2 -0
- package/lib/module/components/gamma/stack/StackHost.types.js.map +1 -0
- package/lib/module/components/gamma/stack/{ScreenStackHost.web.js → StackHost.web.js} +1 -1
- package/lib/module/components/gamma/stack/StackHost.web.js.map +1 -0
- package/lib/module/components/gamma/stack/index.js +15 -0
- package/lib/module/components/gamma/stack/index.js.map +1 -0
- package/lib/module/experimental/index.js +2 -4
- package/lib/module/experimental/index.js.map +1 -1
- package/lib/module/experimental/types.js +3 -3
- package/lib/module/experimental/types.js.map +1 -1
- package/lib/typescript/components/bottom-tabs/BottomTabsScreen.types.d.ts +1 -1
- package/lib/typescript/components/gamma/split/SplitHost.android.d.ts +3 -0
- package/lib/typescript/components/gamma/split/SplitHost.android.d.ts.map +1 -0
- package/lib/typescript/components/gamma/split/SplitHost.d.ts +8 -0
- package/lib/typescript/components/gamma/split/SplitHost.d.ts.map +1 -0
- package/lib/typescript/components/gamma/{split-view/SplitViewHost.types.d.ts → split/SplitHost.types.d.ts} +35 -35
- package/lib/typescript/components/gamma/split/SplitHost.types.d.ts.map +1 -0
- package/lib/typescript/components/gamma/split/SplitHost.web.d.ts +3 -0
- package/lib/typescript/components/gamma/split/SplitHost.web.d.ts.map +1 -0
- package/lib/typescript/components/gamma/{split-view/SplitViewScreen.web.d.ts → split/SplitScreen.android.d.ts} +1 -1
- package/lib/typescript/components/gamma/split/SplitScreen.android.d.ts.map +1 -0
- package/lib/typescript/components/gamma/split/SplitScreen.d.ts +19 -0
- package/lib/typescript/components/gamma/split/SplitScreen.d.ts.map +1 -0
- package/lib/typescript/components/gamma/{split-view/SplitViewScreen.types.d.ts → split/SplitScreen.types.d.ts} +7 -7
- package/lib/typescript/components/gamma/split/SplitScreen.types.d.ts.map +1 -0
- package/lib/typescript/components/gamma/split/SplitScreen.web.d.ts +9 -0
- package/lib/typescript/components/gamma/split/SplitScreen.web.d.ts.map +1 -0
- package/lib/typescript/components/gamma/split/index.d.ts +13 -0
- package/lib/typescript/components/gamma/split/index.d.ts.map +1 -0
- package/lib/typescript/components/gamma/stack/StackHost.d.ts +8 -0
- package/lib/typescript/components/gamma/stack/StackHost.d.ts.map +1 -0
- package/lib/typescript/components/gamma/stack/{ScreenStackHost.types.d.ts → StackHost.types.d.ts} +1 -1
- package/lib/typescript/components/gamma/stack/StackHost.types.d.ts.map +1 -0
- package/lib/typescript/components/gamma/stack/{ScreenStackHost.web.d.ts → StackHost.web.d.ts} +1 -1
- package/lib/typescript/components/gamma/stack/StackHost.web.d.ts.map +1 -0
- package/lib/typescript/components/gamma/stack/index.d.ts +14 -0
- package/lib/typescript/components/gamma/stack/index.d.ts.map +1 -0
- package/lib/typescript/experimental/index.d.ts +2 -4
- package/lib/typescript/experimental/index.d.ts.map +1 -1
- package/lib/typescript/experimental/types.d.ts +3 -3
- package/lib/typescript/experimental/types.d.ts.map +1 -1
- package/package.json +1 -1
- package/src/components/bottom-tabs/BottomTabsScreen.types.ts +1 -1
- package/src/components/gamma/split/SplitHost.android.tsx +8 -0
- package/src/components/gamma/{split-view/SplitViewHost.tsx → split/SplitHost.tsx} +16 -16
- package/src/components/gamma/{split-view/SplitViewHost.types.ts → split/SplitHost.types.ts} +34 -41
- package/src/components/gamma/split/SplitHost.web.tsx +8 -0
- package/src/components/gamma/{split-view/SplitViewScreen.android.tsx → split/SplitScreen.android.tsx} +1 -1
- package/src/components/gamma/{split-view/SplitViewScreen.tsx → split/SplitScreen.tsx} +5 -5
- package/src/components/gamma/{split-view/SplitViewScreen.types.ts → split/SplitScreen.types.ts} +6 -6
- package/src/components/gamma/split/SplitScreen.web.tsx +20 -0
- package/src/components/gamma/split/index.ts +16 -0
- package/src/components/gamma/stack/{ScreenStackHost.tsx → StackHost.tsx} +3 -3
- package/src/components/gamma/stack/index.ts +17 -0
- package/src/experimental/index.ts +4 -5
- package/src/experimental/types.ts +3 -3
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.android.js +0 -12
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.android.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.types.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.web.js +0 -12
- package/lib/commonjs/components/gamma/split-view/SplitViewHost.web.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewScreen.android.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewScreen.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewScreen.types.js.map +0 -1
- package/lib/commonjs/components/gamma/split-view/SplitViewScreen.web.js +0 -17
- package/lib/commonjs/components/gamma/split-view/SplitViewScreen.web.js.map +0 -1
- package/lib/commonjs/components/gamma/stack/ScreenStackHost.js.map +0 -1
- package/lib/commonjs/components/gamma/stack/ScreenStackHost.types.js.map +0 -1
- package/lib/commonjs/components/gamma/stack/ScreenStackHost.web.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewHost.android.js +0 -6
- package/lib/module/components/gamma/split-view/SplitViewHost.android.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewHost.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewHost.types.js +0 -2
- package/lib/module/components/gamma/split-view/SplitViewHost.types.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewHost.web.js +0 -6
- package/lib/module/components/gamma/split-view/SplitViewHost.web.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewScreen.android.js +0 -11
- package/lib/module/components/gamma/split-view/SplitViewScreen.android.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewScreen.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewScreen.types.js +0 -2
- package/lib/module/components/gamma/split-view/SplitViewScreen.types.js.map +0 -1
- package/lib/module/components/gamma/split-view/SplitViewScreen.web.js +0 -11
- package/lib/module/components/gamma/split-view/SplitViewScreen.web.js.map +0 -1
- package/lib/module/components/gamma/stack/ScreenStackHost.js.map +0 -1
- package/lib/module/components/gamma/stack/ScreenStackHost.types.js +0 -2
- package/lib/module/components/gamma/stack/ScreenStackHost.types.js.map +0 -1
- package/lib/module/components/gamma/stack/ScreenStackHost.web.js.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewHost.android.d.ts +0 -3
- package/lib/typescript/components/gamma/split-view/SplitViewHost.android.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewHost.d.ts +0 -8
- package/lib/typescript/components/gamma/split-view/SplitViewHost.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewHost.types.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewHost.web.d.ts +0 -3
- package/lib/typescript/components/gamma/split-view/SplitViewHost.web.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.android.d.ts +0 -6
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.android.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.d.ts +0 -19
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.types.d.ts.map +0 -1
- package/lib/typescript/components/gamma/split-view/SplitViewScreen.web.d.ts.map +0 -1
- package/lib/typescript/components/gamma/stack/ScreenStackHost.d.ts +0 -8
- package/lib/typescript/components/gamma/stack/ScreenStackHost.d.ts.map +0 -1
- package/lib/typescript/components/gamma/stack/ScreenStackHost.types.d.ts.map +0 -1
- package/lib/typescript/components/gamma/stack/ScreenStackHost.web.d.ts.map +0 -1
- package/src/components/gamma/split-view/SplitViewHost.android.tsx +0 -8
- package/src/components/gamma/split-view/SplitViewHost.web.tsx +0 -8
- package/src/components/gamma/split-view/SplitViewScreen.web.tsx +0 -11
- /package/src/components/gamma/stack/{ScreenStackHost.types.ts → StackHost.types.ts} +0 -0
- /package/src/components/gamma/stack/{ScreenStackHost.web.tsx → StackHost.web.tsx} +0 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/components/gamma/stack/index.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,aAAa,CAAC;AACpC,OAAO,WAAW,MAAM,eAAe,CAAC;AAExC,OAAO,EAAE,yBAAyB,EAAE,MAAM,eAAe,CAAC;AAE1D,cAAc,mBAAmB,CAAC;AAClC,cAAc,qBAAqB,CAAC;AAEpC;;GAEG;AACH,QAAA,MAAM,KAAK;;;CAGV,CAAC;AAEF,eAAe,KAAK,CAAC"}
|
|
@@ -3,9 +3,7 @@
|
|
|
3
3
|
* BE SUBJECT TO BREAKING CHANGES WITHOUT NOTICE OR LIBRARY MAJOR VERSION CHANGE.
|
|
4
4
|
*/
|
|
5
5
|
export * from './types';
|
|
6
|
-
export { default as
|
|
7
|
-
export { default as
|
|
8
|
-
export { default as SplitViewHost } from '../components/gamma/split-view/SplitViewHost';
|
|
9
|
-
export { default as SplitViewScreen } from '../components/gamma/split-view/SplitViewScreen';
|
|
6
|
+
export { default as Stack, StackScreenLifecycleState, } from '../components/gamma/stack';
|
|
7
|
+
export { default as Split } from '../components/gamma/split';
|
|
10
8
|
export { default as SafeAreaView } from '../components/safe-area/SafeAreaView';
|
|
11
9
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,SAAS,CAAC;AAIxB,OAAO,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/experimental/index.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAGH,cAAc,SAAS,CAAC;AAIxB,OAAO,EACL,OAAO,IAAI,KAAK,EAChB,yBAAyB,GAC1B,MAAM,2BAA2B,CAAC;AAEnC,OAAO,EAAE,OAAO,IAAI,KAAK,EAAE,MAAM,2BAA2B,CAAC;AAC7D,OAAO,EAAE,OAAO,IAAI,YAAY,EAAE,MAAM,sCAAsC,CAAC"}
|
|
@@ -2,9 +2,9 @@
|
|
|
2
2
|
* ALL SYMBOLS EXPOSED FROM THIS MODULE ARE EXPERIMENTAL AND MIGHT
|
|
3
3
|
* BE SUBJECT TO BREAKING CHANGES WITHOUT NOTICE OR LIBRARY MAJOR VERSION CHANGE.
|
|
4
4
|
*/
|
|
5
|
-
export * from '../components/gamma/
|
|
6
|
-
export * from '../components/gamma/split
|
|
7
|
-
export * from '../components/gamma/
|
|
5
|
+
export * from '../components/gamma/stack/StackHost.types';
|
|
6
|
+
export * from '../components/gamma/split/SplitHost.types';
|
|
7
|
+
export * from '../components/gamma/split/SplitScreen.types';
|
|
8
8
|
export * from '../components/gamma/stack/StackScreen.types';
|
|
9
9
|
export * from '../components/safe-area/SafeAreaView.types';
|
|
10
10
|
//# sourceMappingURL=types.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/experimental/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/experimental/types.ts"],"names":[],"mappings":"AAAA;;;GAGG;AAEH,cAAc,2CAA2C,CAAC;AAC1D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,6CAA6C,CAAC;AAC5D,cAAc,4CAA4C,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "react-native-screens",
|
|
3
|
-
"version": "4.20.0-nightly-
|
|
3
|
+
"version": "4.20.0-nightly-20251217-952b7cd54",
|
|
4
4
|
"description": "Native navigation primitives for your React Native app.",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"submodules": "git submodule update --init --recursive && (cd react-navigation && yarn && yarn build && cd ../)",
|
|
@@ -413,7 +413,7 @@ export interface BottomTabsScreenProps {
|
|
|
413
413
|
* is queried.
|
|
414
414
|
*
|
|
415
415
|
* Note that:
|
|
416
|
-
* - some components (like `
|
|
416
|
+
* - some components (like `SplitHost`) may choose not to query
|
|
417
417
|
* its child components,
|
|
418
418
|
* - Stack v4 implementation **ALWAYS** returns some supported
|
|
419
419
|
* orientations (`allButUpsideDown` by default), overriding
|
|
@@ -2,19 +2,19 @@ import React from 'react';
|
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import SplitViewHostNativeComponent from '../../../fabric/gamma/SplitViewHostNativeComponent';
|
|
4
4
|
import type {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
} from './
|
|
9
|
-
import
|
|
5
|
+
SplitDisplayMode,
|
|
6
|
+
SplitHostProps,
|
|
7
|
+
SplitBehavior,
|
|
8
|
+
} from './SplitHost.types';
|
|
9
|
+
import SplitScreen from './SplitScreen';
|
|
10
10
|
|
|
11
11
|
// According to the UIKit documentation: https://developer.apple.com/documentation/uikit/uisplitviewcontroller/displaymode-swift.enum
|
|
12
12
|
// Only specific pairs for displayMode - splitBehavior are valid and others may lead to unexpected results.
|
|
13
13
|
// Therefore, we're adding check on the JS side to return a feedback to the client when that pairing isn't valid.
|
|
14
14
|
// However, we're not blocking these props to be set on the native side, because it doesn't crash, just the result or transitions may not work as expected.
|
|
15
|
-
const
|
|
16
|
-
|
|
17
|
-
|
|
15
|
+
const displayModeForSplitCompatibilityMap: Record<
|
|
16
|
+
SplitBehavior,
|
|
17
|
+
SplitDisplayMode[]
|
|
18
18
|
> = {
|
|
19
19
|
tile: ['secondaryOnly', 'oneBesideSecondary', 'twoBesideSecondary'],
|
|
20
20
|
overlay: ['secondaryOnly', 'oneOverSecondary', 'twoOverSecondary'],
|
|
@@ -23,14 +23,14 @@ const displayModeForSplitViewCompatibilityMap: Record<
|
|
|
23
23
|
};
|
|
24
24
|
|
|
25
25
|
const isValidDisplayModeForSplitBehavior = (
|
|
26
|
-
displayMode:
|
|
27
|
-
splitBehavior:
|
|
26
|
+
displayMode: SplitDisplayMode,
|
|
27
|
+
splitBehavior: SplitBehavior,
|
|
28
28
|
) => {
|
|
29
29
|
if (splitBehavior === 'automatic') {
|
|
30
30
|
// for automatic we cannot easily verify the compatibility, because it depends on the system preference for display mode, therefore we're assuming that 'automatic' has only valid combinations
|
|
31
31
|
return true;
|
|
32
32
|
}
|
|
33
|
-
return
|
|
33
|
+
return displayModeForSplitCompatibilityMap[splitBehavior].includes(
|
|
34
34
|
displayMode,
|
|
35
35
|
);
|
|
36
36
|
};
|
|
@@ -38,7 +38,7 @@ const isValidDisplayModeForSplitBehavior = (
|
|
|
38
38
|
/**
|
|
39
39
|
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
40
40
|
*/
|
|
41
|
-
function
|
|
41
|
+
function SplitHost(props: SplitHostProps) {
|
|
42
42
|
const { preferredDisplayMode, preferredSplitBehavior } = props;
|
|
43
43
|
|
|
44
44
|
React.useEffect(() => {
|
|
@@ -49,7 +49,7 @@ function SplitViewHost(props: SplitViewHostProps) {
|
|
|
49
49
|
);
|
|
50
50
|
if (!isValid) {
|
|
51
51
|
const validDisplayModes =
|
|
52
|
-
|
|
52
|
+
displayModeForSplitCompatibilityMap[preferredSplitBehavior];
|
|
53
53
|
console.warn(
|
|
54
54
|
`Invalid display mode "${preferredDisplayMode}" for split behavior "${preferredSplitBehavior}".` +
|
|
55
55
|
`\nValid modes for "${preferredSplitBehavior}" are: ${validDisplayModes.join(
|
|
@@ -64,12 +64,12 @@ function SplitViewHost(props: SplitViewHostProps) {
|
|
|
64
64
|
|
|
65
65
|
const columns = children.filter(
|
|
66
66
|
// @ts-ignore - type is valid attribute for child
|
|
67
|
-
child => child.type ===
|
|
67
|
+
child => child.type === SplitScreen.Column,
|
|
68
68
|
);
|
|
69
69
|
|
|
70
70
|
const inspectors = children.filter(
|
|
71
71
|
// @ts-ignore - type is valid attribute for child
|
|
72
|
-
child => child.type ===
|
|
72
|
+
child => child.type === SplitScreen.Inspector,
|
|
73
73
|
);
|
|
74
74
|
|
|
75
75
|
return (
|
|
@@ -91,4 +91,4 @@ const styles = StyleSheet.create({
|
|
|
91
91
|
},
|
|
92
92
|
});
|
|
93
93
|
|
|
94
|
-
export default
|
|
94
|
+
export default SplitHost;
|
|
@@ -8,22 +8,15 @@ export type DisplayModeWillChangeEvent = {
|
|
|
8
8
|
nextDisplayMode: string;
|
|
9
9
|
};
|
|
10
10
|
|
|
11
|
-
export type
|
|
12
|
-
| 'always'
|
|
13
|
-
| 'automatic'
|
|
14
|
-
| 'never';
|
|
11
|
+
export type SplitDisplayModeButtonVisibility = 'always' | 'automatic' | 'never';
|
|
15
12
|
|
|
16
|
-
export type
|
|
17
|
-
| 'automatic'
|
|
18
|
-
| 'displace'
|
|
19
|
-
| 'overlay'
|
|
20
|
-
| 'tile';
|
|
13
|
+
export type SplitBehavior = 'automatic' | 'displace' | 'overlay' | 'tile';
|
|
21
14
|
|
|
22
|
-
export type
|
|
15
|
+
export type SplitPrimaryEdge = 'leading' | 'trailing';
|
|
23
16
|
|
|
24
|
-
export type
|
|
17
|
+
export type SplitPrimaryBackgroundStyle = 'default' | 'none' | 'sidebar';
|
|
25
18
|
|
|
26
|
-
export type
|
|
19
|
+
export type SplitDisplayMode =
|
|
27
20
|
| 'automatic'
|
|
28
21
|
| 'secondaryOnly'
|
|
29
22
|
| 'oneBesideSecondary'
|
|
@@ -32,7 +25,7 @@ export type SplitViewDisplayMode =
|
|
|
32
25
|
| 'twoOverSecondary'
|
|
33
26
|
| 'twoDisplaceSecondary';
|
|
34
27
|
|
|
35
|
-
export type
|
|
28
|
+
export type SplitHostOrientation =
|
|
36
29
|
| 'inherit'
|
|
37
30
|
| 'all'
|
|
38
31
|
| 'allButUpsideDown'
|
|
@@ -43,47 +36,47 @@ export type SplitViewHostOrientation =
|
|
|
43
36
|
| 'landscapeLeft'
|
|
44
37
|
| 'landscapeRight';
|
|
45
38
|
|
|
46
|
-
export interface
|
|
39
|
+
export interface SplitColumnMetrics {
|
|
47
40
|
/**
|
|
48
41
|
* @summary Minimum width for the primary sidebar.
|
|
49
42
|
*
|
|
50
|
-
* Specifies the minimum width for the primary column in the
|
|
43
|
+
* Specifies the minimum width for the primary column in the Split layout, typically representing the leftmost sidebar.
|
|
51
44
|
*/
|
|
52
45
|
minimumPrimaryColumnWidth?: number;
|
|
53
46
|
/**
|
|
54
47
|
* @summary Maximum width for the primary sidebar.
|
|
55
48
|
*
|
|
56
|
-
* Specifies the maximum width (in points) for the primary column in the
|
|
49
|
+
* Specifies the maximum width (in points) for the primary column in the Split layout, typically representing the leftmost sidebar.
|
|
57
50
|
*/
|
|
58
51
|
maximumPrimaryColumnWidth?: number;
|
|
59
52
|
/**
|
|
60
53
|
* @summary Preferred width for the primary sidebar.
|
|
61
54
|
*
|
|
62
|
-
* Specifies the preferred width (in points or as a fraction for percentage width support) for the primary column in the
|
|
55
|
+
* Specifies the preferred width (in points or as a fraction for percentage width support) for the primary column in the Split layout, typically representing the leftmost sidebar.
|
|
63
56
|
*/
|
|
64
57
|
preferredPrimaryColumnWidthOrFraction?: number;
|
|
65
58
|
/**
|
|
66
59
|
* @summary Minimum width for the intermediate sidebar.
|
|
67
60
|
*
|
|
68
|
-
* Specifies the minimum width (in points) for the supplementary column in the
|
|
61
|
+
* Specifies the minimum width (in points) for the supplementary column in the Split layout, typically representing the intermediate sidebar.
|
|
69
62
|
*/
|
|
70
63
|
minimumSupplementaryColumnWidth?: number;
|
|
71
64
|
/**
|
|
72
65
|
* @summary Maximum width for the intermediate sidebar.
|
|
73
66
|
*
|
|
74
|
-
* Specifies the maximum width (in points) for the supplementary column in the
|
|
67
|
+
* Specifies the maximum width (in points) for the supplementary column in the Split layout, typically representing the intermediate sidebar.
|
|
75
68
|
*/
|
|
76
69
|
maximumSupplementaryColumnWidth?: number;
|
|
77
70
|
/**
|
|
78
71
|
* @summary Preferred width for the intermediate sidebar.
|
|
79
72
|
*
|
|
80
|
-
* Specifies the preferred width (in points or as a fraction for percentage width support) for the supplementary column in the
|
|
73
|
+
* Specifies the preferred width (in points or as a fraction for percentage width support) for the supplementary column in the Split layout, typically representing the intermediate sidebar.
|
|
81
74
|
*/
|
|
82
75
|
preferredSupplementaryColumnWidthOrFraction?: number;
|
|
83
76
|
/**
|
|
84
77
|
* @summary Minimum width for the secondary component.
|
|
85
78
|
*
|
|
86
|
-
* Specifies the minimum width (in points) for the secondary column in the
|
|
79
|
+
* Specifies the minimum width (in points) for the secondary column in the Split layout, typically for the view with the main content.
|
|
87
80
|
*
|
|
88
81
|
* @supported iOS 26 or higher
|
|
89
82
|
*/
|
|
@@ -91,7 +84,7 @@ export interface SplitViewColumnMetrics {
|
|
|
91
84
|
/**
|
|
92
85
|
* @summary Preferred width for the secondary component.
|
|
93
86
|
*
|
|
94
|
-
* Specifies the preferred width (in points or as a fraction for percentage width support) for the secondary column in the
|
|
87
|
+
* Specifies the preferred width (in points or as a fraction for percentage width support) for the secondary column in the Split layout, typically for the view with the main content.
|
|
95
88
|
*
|
|
96
89
|
* @supported iOS 26 or higher
|
|
97
90
|
*/
|
|
@@ -99,7 +92,7 @@ export interface SplitViewColumnMetrics {
|
|
|
99
92
|
/**
|
|
100
93
|
* @summary Minimum width for the inspector component.
|
|
101
94
|
*
|
|
102
|
-
* Specifies the minimum width (in points) for the inspector column in the
|
|
95
|
+
* Specifies the minimum width (in points) for the inspector column in the Split layout, typically the view which is providing additional data about the secondary column.
|
|
103
96
|
*
|
|
104
97
|
* @supported iOS 26 or higher
|
|
105
98
|
*/
|
|
@@ -107,7 +100,7 @@ export interface SplitViewColumnMetrics {
|
|
|
107
100
|
/**
|
|
108
101
|
* @summary Maximum width for the inspector component.
|
|
109
102
|
*
|
|
110
|
-
* Specifies the maximum width (in points) for the inspector column in the
|
|
103
|
+
* Specifies the maximum width (in points) for the inspector column in the Split layout, typically the view which is providing additional data about the secondary column.
|
|
111
104
|
*
|
|
112
105
|
* @supported iOS 26 or higher
|
|
113
106
|
*/
|
|
@@ -115,13 +108,13 @@ export interface SplitViewColumnMetrics {
|
|
|
115
108
|
/**
|
|
116
109
|
* @summary Preferred width for the inspector component.
|
|
117
110
|
*
|
|
118
|
-
* Specifies the preferred width (in points or as a fraction for percentage width support) for the inspector column in the
|
|
111
|
+
* Specifies the preferred width (in points or as a fraction for percentage width support) for the inspector column in the Split layout, typically the view which is providing additional data about the secondary column.
|
|
119
112
|
*
|
|
120
113
|
* @supported iOS 26 or higher
|
|
121
114
|
*/
|
|
122
115
|
preferredInspectorColumnWidthOrFraction?: number;
|
|
123
116
|
}
|
|
124
|
-
export interface
|
|
117
|
+
export interface SplitHostProps extends ViewProps {
|
|
125
118
|
children?: React.ReactNode;
|
|
126
119
|
|
|
127
120
|
/**
|
|
@@ -137,9 +130,9 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
137
130
|
* - `secondary` - the view with the main content
|
|
138
131
|
* - `inspector` - the view which is providing additional data about the secondary column
|
|
139
132
|
*/
|
|
140
|
-
columnMetrics?:
|
|
133
|
+
columnMetrics?: SplitColumnMetrics;
|
|
141
134
|
/**
|
|
142
|
-
* @summary Determines whether the button for changing the
|
|
135
|
+
* @summary Determines whether the button for changing the Split display mode is visible on the screen.
|
|
143
136
|
*
|
|
144
137
|
* The following values are currently supported:
|
|
145
138
|
*
|
|
@@ -152,13 +145,13 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
152
145
|
*
|
|
153
146
|
* @default automatic
|
|
154
147
|
*/
|
|
155
|
-
displayModeButtonVisibility?:
|
|
148
|
+
displayModeButtonVisibility?: SplitDisplayModeButtonVisibility;
|
|
156
149
|
/**
|
|
157
|
-
* @summary A callback that gets invoked when the
|
|
150
|
+
* @summary A callback that gets invoked when the Split was collapsed to a single column.
|
|
158
151
|
*/
|
|
159
152
|
onCollapse?: (e: NativeSyntheticEvent<GenericEmptyEvent>) => void;
|
|
160
153
|
/**
|
|
161
|
-
* @summary A callback that gets invoked when the
|
|
154
|
+
* @summary A callback that gets invoked when the Split displayMode has changed.
|
|
162
155
|
*
|
|
163
156
|
* The purpose of this callback is tracking displayMode updates on host from the JS side.
|
|
164
157
|
* These updates might be a consequence of some native interactions, like pressing native button or performing swipe gesture.
|
|
@@ -167,13 +160,13 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
167
160
|
e: NativeSyntheticEvent<DisplayModeWillChangeEvent>,
|
|
168
161
|
) => void;
|
|
169
162
|
/**
|
|
170
|
-
* @summary A callback that gets invoked when the
|
|
163
|
+
* @summary A callback that gets invoked when the Split was expanded to multiple columns.
|
|
171
164
|
*/
|
|
172
165
|
onExpand?: (e: NativeSyntheticEvent<GenericEmptyEvent>) => void;
|
|
173
166
|
/**
|
|
174
|
-
* @summary A callback that gets invoked when the
|
|
167
|
+
* @summary A callback that gets invoked when the Split inspector is either programmatically hidden (in column presentation) or dismissed (in modal presentation).
|
|
175
168
|
*
|
|
176
|
-
* The purpose of this callback depends on whether the
|
|
169
|
+
* The purpose of this callback depends on whether the Split is collapsed or expanded.
|
|
177
170
|
*
|
|
178
171
|
* @supported iOS 26 or higher
|
|
179
172
|
*/
|
|
@@ -220,7 +213,7 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
220
213
|
*
|
|
221
214
|
* @platform ios
|
|
222
215
|
*/
|
|
223
|
-
orientation?:
|
|
216
|
+
orientation?: SplitHostOrientation;
|
|
224
217
|
/**
|
|
225
218
|
* @summary Determines whether gestures are enabled to change the display mode.
|
|
226
219
|
*/
|
|
@@ -245,7 +238,7 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
245
238
|
*
|
|
246
239
|
* @default automatic
|
|
247
240
|
*/
|
|
248
|
-
preferredDisplayMode?:
|
|
241
|
+
preferredDisplayMode?: SplitDisplayMode;
|
|
249
242
|
/**
|
|
250
243
|
* @summary Specifies the split behavior which will be preferred to use, if the layout requirements are met.
|
|
251
244
|
*
|
|
@@ -263,7 +256,7 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
263
256
|
*
|
|
264
257
|
* @default automatic
|
|
265
258
|
*/
|
|
266
|
-
preferredSplitBehavior?:
|
|
259
|
+
preferredSplitBehavior?: SplitBehavior;
|
|
267
260
|
/**
|
|
268
261
|
* @summary Specifies the background style of the primary view controller.
|
|
269
262
|
*
|
|
@@ -285,7 +278,7 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
285
278
|
* @remarks
|
|
286
279
|
* According to the documentation, this property shouldn't have any effect on iOS. However, on iOS 26 the support for this prop was added.
|
|
287
280
|
*/
|
|
288
|
-
primaryBackgroundStyle?:
|
|
281
|
+
primaryBackgroundStyle?: SplitPrimaryBackgroundStyle;
|
|
289
282
|
/**
|
|
290
283
|
* @summary Indicates on which side primary sidebar is placed, affecting the split view layout.
|
|
291
284
|
*
|
|
@@ -299,12 +292,12 @@ export interface SplitViewHostProps extends ViewProps {
|
|
|
299
292
|
*
|
|
300
293
|
* @default leading
|
|
301
294
|
*/
|
|
302
|
-
primaryEdge?:
|
|
295
|
+
primaryEdge?: SplitPrimaryEdge;
|
|
303
296
|
/**
|
|
304
297
|
* @summary Determines whether inspector column should be displayed.
|
|
305
298
|
*
|
|
306
|
-
* Inspector will be displayed on the trailing edge of the main (secondary) column (for expanded
|
|
307
|
-
* The result on the interface for this prop depends on whether the
|
|
299
|
+
* Inspector will be displayed on the trailing edge of the main (secondary) column (for expanded Split) or as a modal (for collapsed Split).
|
|
300
|
+
* The result on the interface for this prop depends on whether the Split is collapsed or expanded.
|
|
308
301
|
*
|
|
309
302
|
* @supported iOS 26 or higher
|
|
310
303
|
*/
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
const NOOP = () => {
|
|
2
2
|
console.warn(
|
|
3
|
-
'[RNScreens]
|
|
3
|
+
'[RNScreens] Split component is supported only for iOS. Consider using an alternative layout for Android.',
|
|
4
4
|
);
|
|
5
5
|
return null;
|
|
6
6
|
};
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import SplitViewScreenNativeComponent from '../../../fabric/gamma/SplitViewScreenNativeComponent';
|
|
4
|
-
import {
|
|
4
|
+
import { SplitScreenProps } from './SplitScreen.types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
8
8
|
*/
|
|
9
|
-
function Column(props:
|
|
9
|
+
function Column(props: SplitScreenProps) {
|
|
10
10
|
return (
|
|
11
11
|
<SplitViewScreenNativeComponent
|
|
12
12
|
columnType="column"
|
|
@@ -20,7 +20,7 @@ function Column(props: SplitViewScreenProps) {
|
|
|
20
20
|
/**
|
|
21
21
|
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
22
22
|
*/
|
|
23
|
-
function Inspector(props:
|
|
23
|
+
function Inspector(props: SplitScreenProps) {
|
|
24
24
|
return (
|
|
25
25
|
<SplitViewScreenNativeComponent
|
|
26
26
|
columnType="inspector"
|
|
@@ -35,9 +35,9 @@ function Inspector(props: SplitViewScreenProps) {
|
|
|
35
35
|
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
36
36
|
*/
|
|
37
37
|
// TODO: refactor to drop `Screen` suffix as the API name is really long at the moment
|
|
38
|
-
const
|
|
38
|
+
const SplitScreen = {
|
|
39
39
|
Column,
|
|
40
40
|
Inspector,
|
|
41
41
|
};
|
|
42
42
|
|
|
43
|
-
export default
|
|
43
|
+
export default SplitScreen;
|
package/src/components/gamma/{split-view/SplitViewScreen.types.ts → split/SplitScreen.types.ts}
RENAMED
|
@@ -3,30 +3,30 @@ import type { NativeSyntheticEvent, ViewProps } from 'react-native';
|
|
|
3
3
|
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
4
4
|
type GenericEmptyEvent = Readonly<{}>;
|
|
5
5
|
|
|
6
|
-
export type
|
|
6
|
+
export type SplitScreenColumnType = 'column' | 'inspector';
|
|
7
7
|
|
|
8
|
-
export interface
|
|
8
|
+
export interface SplitScreenProps extends ViewProps {
|
|
9
9
|
children?: React.ReactNode;
|
|
10
10
|
/**
|
|
11
|
-
* @summary A callback that gets invoked when the current
|
|
11
|
+
* @summary A callback that gets invoked when the current SplitScreen did appear.
|
|
12
12
|
*
|
|
13
13
|
* This is called as soon as the transition ends.
|
|
14
14
|
*/
|
|
15
15
|
onDidAppear?: (e: NativeSyntheticEvent<GenericEmptyEvent>) => void;
|
|
16
16
|
/**
|
|
17
|
-
* @summary A callback that gets invoked when the current
|
|
17
|
+
* @summary A callback that gets invoked when the current SplitScreen did disappear.
|
|
18
18
|
*
|
|
19
19
|
* This is called as soon as the transition ends.
|
|
20
20
|
*/
|
|
21
21
|
onDidDisappear?: (e: NativeSyntheticEvent<GenericEmptyEvent>) => void;
|
|
22
22
|
/**
|
|
23
|
-
* @summary A callback that gets invoked when the current
|
|
23
|
+
* @summary A callback that gets invoked when the current SplitScreen will appear.
|
|
24
24
|
*
|
|
25
25
|
* This is called as soon as the transition begins.
|
|
26
26
|
*/
|
|
27
27
|
onWillAppear?: (e: NativeSyntheticEvent<GenericEmptyEvent>) => void;
|
|
28
28
|
/**
|
|
29
|
-
* @summary A callback that gets invoked when the current
|
|
29
|
+
* @summary A callback that gets invoked when the current SplitScreen will disappear.
|
|
30
30
|
*
|
|
31
31
|
* This is called as soon as the transition begins.
|
|
32
32
|
*/
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
const NOOP = () => {
|
|
2
|
+
console.warn(
|
|
3
|
+
'[RNScreens] Split component is supported only for iOS. Consider using an alternative layout for Web.',
|
|
4
|
+
);
|
|
5
|
+
return null;
|
|
6
|
+
};
|
|
7
|
+
|
|
8
|
+
const Column = NOOP;
|
|
9
|
+
const Inspector = NOOP;
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
13
|
+
*/
|
|
14
|
+
// TODO: refactor to drop `Screen` suffix as the API name is really long at the moment
|
|
15
|
+
const SplitScreen = {
|
|
16
|
+
Column,
|
|
17
|
+
Inspector,
|
|
18
|
+
};
|
|
19
|
+
|
|
20
|
+
export default SplitScreen;
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import SplitHost from './SplitHost';
|
|
2
|
+
import SplitScreen from './SplitScreen';
|
|
3
|
+
|
|
4
|
+
export * from './SplitHost.types';
|
|
5
|
+
export * from './SplitScreen.types';
|
|
6
|
+
|
|
7
|
+
/**
|
|
8
|
+
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
9
|
+
*/
|
|
10
|
+
const Split = {
|
|
11
|
+
Host: SplitHost,
|
|
12
|
+
Column: SplitScreen.Column,
|
|
13
|
+
Inspector: SplitScreen.Inspector,
|
|
14
|
+
};
|
|
15
|
+
|
|
16
|
+
export default Split;
|
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import { StyleSheet } from 'react-native';
|
|
3
3
|
import ScreenStackHostNativeComponent from '../../../fabric/gamma/ScreenStackHostNativeComponent';
|
|
4
|
-
import type { ScreenStackHostProps } from './
|
|
4
|
+
import type { ScreenStackHostProps } from './StackHost.types';
|
|
5
5
|
|
|
6
6
|
/**
|
|
7
7
|
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
8
8
|
*/
|
|
9
|
-
function
|
|
9
|
+
function StackHost({ children }: ScreenStackHostProps) {
|
|
10
10
|
return (
|
|
11
11
|
<ScreenStackHostNativeComponent style={styles.container}>
|
|
12
12
|
{children}
|
|
@@ -20,4 +20,4 @@ const styles = StyleSheet.create({
|
|
|
20
20
|
},
|
|
21
21
|
});
|
|
22
22
|
|
|
23
|
-
export default
|
|
23
|
+
export default StackHost;
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import StackHost from './StackHost';
|
|
2
|
+
import StackScreen from './StackScreen';
|
|
3
|
+
|
|
4
|
+
export { StackScreenLifecycleState } from './StackScreen';
|
|
5
|
+
|
|
6
|
+
export * from './StackHost.types';
|
|
7
|
+
export * from './StackScreen.types';
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* EXPERIMENTAL API, MIGHT CHANGE W/O ANY NOTICE
|
|
11
|
+
*/
|
|
12
|
+
const Stack = {
|
|
13
|
+
Host: StackHost,
|
|
14
|
+
Screen: StackScreen,
|
|
15
|
+
};
|
|
16
|
+
|
|
17
|
+
export default Stack;
|
|
@@ -8,11 +8,10 @@ export * from './types';
|
|
|
8
8
|
|
|
9
9
|
// Components
|
|
10
10
|
|
|
11
|
-
export { default as ScreenStackHost } from '../components/gamma/stack/ScreenStackHost';
|
|
12
11
|
export {
|
|
13
|
-
default as
|
|
12
|
+
default as Stack,
|
|
14
13
|
StackScreenLifecycleState,
|
|
15
|
-
} from '../components/gamma/stack
|
|
16
|
-
|
|
17
|
-
export { default as
|
|
14
|
+
} from '../components/gamma/stack';
|
|
15
|
+
|
|
16
|
+
export { default as Split } from '../components/gamma/split';
|
|
18
17
|
export { default as SafeAreaView } from '../components/safe-area/SafeAreaView';
|
|
@@ -3,8 +3,8 @@
|
|
|
3
3
|
* BE SUBJECT TO BREAKING CHANGES WITHOUT NOTICE OR LIBRARY MAJOR VERSION CHANGE.
|
|
4
4
|
*/
|
|
5
5
|
|
|
6
|
-
export * from '../components/gamma/
|
|
7
|
-
export * from '../components/gamma/split
|
|
8
|
-
export * from '../components/gamma/
|
|
6
|
+
export * from '../components/gamma/stack/StackHost.types';
|
|
7
|
+
export * from '../components/gamma/split/SplitHost.types';
|
|
8
|
+
export * from '../components/gamma/split/SplitScreen.types';
|
|
9
9
|
export * from '../components/gamma/stack/StackScreen.types';
|
|
10
10
|
export * from '../components/safe-area/SafeAreaView.types';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const SplitViewHost = () => {
|
|
8
|
-
console.warn('[RNScreens] SplitView is supported only for iOS. Consider using an alternative layout for Android.');
|
|
9
|
-
return null;
|
|
10
|
-
};
|
|
11
|
-
var _default = exports.default = SplitViewHost;
|
|
12
|
-
//# sourceMappingURL=SplitViewHost.android.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SplitViewHost","console","warn","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["components/gamma/split-view/SplitViewHost.android.tsx"],"mappings":";;;;;;AAAA,MAAMA,aAAa,GAAGA,CAAA,KAAM;EAC1BC,OAAO,CAACC,IAAI,CACV,oGACF,CAAC;EACD,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaL,aAAa","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["_react","_interopRequireDefault","require","_reactNative","_SplitViewHostNativeComponent","_SplitViewScreen","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","displayModeForSplitViewCompatibilityMap","tile","overlay","displace","automatic","isValidDisplayModeForSplitBehavior","displayMode","splitBehavior","includes","SplitViewHost","props","preferredDisplayMode","preferredSplitBehavior","React","useEffect","isValid","validDisplayModes","console","warn","join","children","Children","toArray","columns","filter","child","type","SplitViewScreen","Column","inspectors","Inspector","createElement","key","style","styles","container","StyleSheet","create","flex","_default","exports"],"sourceRoot":"../../../../../src","sources":["components/gamma/split-view/SplitViewHost.tsx"],"mappings":"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","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":[],"sourceRoot":"../../../../../src","sources":["components/gamma/split-view/SplitViewHost.types.ts"],"mappings":"","ignoreList":[]}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
exports.default = void 0;
|
|
7
|
-
const SplitViewHost = () => {
|
|
8
|
-
console.warn('[RNScreens] SplitView is supported only for iOS. Consider using an alternative layout for Web.');
|
|
9
|
-
return null;
|
|
10
|
-
};
|
|
11
|
-
var _default = exports.default = SplitViewHost;
|
|
12
|
-
//# sourceMappingURL=SplitViewHost.web.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["SplitViewHost","console","warn","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["components/gamma/split-view/SplitViewHost.web.tsx"],"mappings":";;;;;;AAAA,MAAMA,aAAa,GAAGA,CAAA,KAAM;EAC1BC,OAAO,CAACC,IAAI,CACV,gGACF,CAAC;EACD,OAAO,IAAI;AACb,CAAC;AAAC,IAAAC,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAEaL,aAAa","ignoreList":[]}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"names":["NOOP","console","warn","Column","Inspector","_default","exports","default"],"sourceRoot":"../../../../../src","sources":["components/gamma/split-view/SplitViewScreen.android.tsx"],"mappings":";;;;;;AAAA,MAAMA,IAAI,GAAGA,CAAA,KAAM;EACjBC,OAAO,CAACC,IAAI,CACV,oGACF,CAAC;EACD,OAAO,IAAI;AACb,CAAC;AAED,MAAMC,MAAM,GAAGH,IAAI;AACnB,MAAMI,SAAS,GAAGJ,IAAI;AAAC,IAAAK,QAAA,GAAAC,OAAA,CAAAC,OAAA,GAER;EAAEJ,MAAM;EAAEC;AAAU,CAAC","ignoreList":[]}
|