@amazon-devices/react-native-screens 3.0.9000000000 → 3.0.9000000003
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/SystemModules/amzn__react-native-screens-3.private.modules.txt +116 -61
- package/kepler-compatibility.json +5 -2
- package/lib/commonjs/TransitionProgressContext.js.map +1 -1
- package/lib/commonjs/components/DebugContainer.js.map +1 -1
- package/lib/commonjs/components/DebugContainer.web.js.map +1 -1
- package/lib/commonjs/components/Screen.web.js.map +1 -1
- package/lib/commonjs/components/ScreenStackHeaderConfig.js.map +1 -1
- package/lib/commonjs/components/ScreenStackHeaderConfig.web.js.map +1 -1
- package/lib/commonjs/components/ScreenStackItem.js.map +1 -1
- package/lib/commonjs/components/SearchBar.js.map +1 -1
- package/lib/commonjs/components/helpers/usePrevious.js.map +1 -1
- package/lib/commonjs/gesture-handler/ScreenGestureDetector.js.map +1 -1
- package/lib/commonjs/index.js +0 -210
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js.map +1 -1
- package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js.map +1 -1
- package/lib/commonjs/native-stack/utils/HeaderHeightContext.js.map +1 -1
- package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js.map +1 -1
- package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js.map +1 -1
- package/lib/commonjs/native-stack/utils/useBackPressSubscription.js.map +1 -1
- package/lib/commonjs/native-stack/utils/useHeaderHeight.js.map +1 -1
- package/lib/commonjs/native-stack/views/HeaderConfig.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js.map +1 -1
- package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js.map +1 -1
- package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js.map +1 -1
- package/lib/commonjs/useTransitionProgress.js.map +1 -1
- package/lib/module/components/Screen.web.js.map +1 -1
- package/lib/module/components/ScreenStackHeaderConfig.js.map +1 -1
- package/lib/module/components/ScreenStackHeaderConfig.web.js.map +1 -1
- package/lib/module/components/SearchBar.js.map +1 -1
- package/lib/module/components/helpers/usePrevious.js.map +1 -1
- package/lib/module/native-stack/utils/useBackPressSubscription.js.map +1 -1
- package/lib/module/native-stack/views/HeaderConfig.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/typescript/components/Screen.web.d.ts +1 -1
- package/lib/typescript/components/Screen.web.d.ts.map +1 -1
- package/lib/typescript/components/ScreenStackHeaderConfig.d.ts +5 -5
- package/lib/typescript/components/ScreenStackHeaderConfig.d.ts.map +1 -1
- package/lib/typescript/components/ScreenStackHeaderConfig.web.d.ts +6 -6
- package/lib/typescript/components/ScreenStackHeaderConfig.web.d.ts.map +1 -1
- package/lib/typescript/components/SearchBar.d.ts.map +1 -1
- package/lib/typescript/components/helpers/usePrevious.d.ts.map +1 -1
- package/lib/typescript/native-stack/utils/useBackPressSubscription.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/HeaderConfig.d.ts +2 -2
- package/lib/typescript/native-stack/views/HeaderConfig.d.ts.map +1 -1
- package/lib/typescript/native-stack/views/NativeStackView.d.ts.map +1 -1
- package/lib/typescript/types.d.ts +2 -2
- package/lib/typescript/types.d.ts.map +1 -1
- package/oss-attribution/attribution.txt +77 -0
- package/oss-attribution/licenseInfos.json +27 -0
- package/package.json +1 -1
- package/src/index.tsx +0 -55
- package/SystemBundles/31d5b6b69618249f6233b73a1de7c4d890c86be7ccb031ce7cf2dcc41783f9f7.bundle +0 -45301
- package/SystemBundles/31d5b6b69618249f6233b73a1de7c4d890c86be7ccb031ce7cf2dcc41783f9f7.map +0 -13711
- package/lib/commonjs/TransitionProgressContext.js +0 -12
- package/lib/commonjs/components/DebugContainer.js +0 -39
- package/lib/commonjs/components/DebugContainer.web.js +0 -15
- package/lib/commonjs/components/FullWindowOverlay.js +0 -31
- package/lib/commonjs/components/FullWindowOverlay.web.js +0 -9
- package/lib/commonjs/components/Screen.js +0 -286
- package/lib/commonjs/components/Screen.web.js +0 -47
- package/lib/commonjs/components/ScreenContainer.js +0 -32
- package/lib/commonjs/components/ScreenContainer.web.js +0 -10
- package/lib/commonjs/components/ScreenContentWrapper.js +0 -17
- package/lib/commonjs/components/ScreenContentWrapper.web.js +0 -10
- package/lib/commonjs/components/ScreenFooter.js +0 -25
- package/lib/commonjs/components/ScreenFooter.web.js +0 -11
- package/lib/commonjs/components/ScreenStack.js +0 -67
- package/lib/commonjs/components/ScreenStack.web.js +0 -10
- package/lib/commonjs/components/ScreenStackHeaderConfig.js +0 -90
- package/lib/commonjs/components/ScreenStackHeaderConfig.web.js +0 -27
- package/lib/commonjs/components/ScreenStackItem.js +0 -107
- package/lib/commonjs/components/SearchBar.js +0 -63
- package/lib/commonjs/components/SearchBar.web.js +0 -10
- package/lib/commonjs/components/helpers/DelayedFreeze.js +0 -31
- package/lib/commonjs/components/helpers/usePrevious.js +0 -15
- package/lib/commonjs/contexts.js +0 -11
- package/lib/commonjs/core.js +0 -40
- package/lib/commonjs/fabric/FullWindowOverlayNativeComponent.js +0 -26
- package/lib/commonjs/fabric/ModalScreenNativeComponent.js +0 -14
- package/lib/commonjs/fabric/NativeScreensModule.js +0 -10
- package/lib/commonjs/fabric/NativeScreensModule.web.js +0 -8
- package/lib/commonjs/fabric/ScreenContainerNativeComponent.js +0 -30
- package/lib/commonjs/fabric/ScreenContentWrapperNativeComponent.js +0 -18
- package/lib/commonjs/fabric/ScreenFooterNativeComponent.js +0 -10
- package/lib/commonjs/fabric/ScreenNativeComponent.js +0 -70
- package/lib/commonjs/fabric/ScreenNavigationContainerNativeComponent.js +0 -12
- package/lib/commonjs/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -32
- package/lib/commonjs/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -15
- package/lib/commonjs/fabric/ScreenStackNativeComponent.js +0 -32
- package/lib/commonjs/fabric/SearchBarNativeComponent.js +0 -18
- package/lib/commonjs/gesture-handler/GestureDetectorProvider.js +0 -19
- package/lib/commonjs/gesture-handler/RNScreensTurboModule.js +0 -8
- package/lib/commonjs/gesture-handler/ScreenGestureDetector.js +0 -201
- package/lib/commonjs/gesture-handler/constraints.js +0 -64
- package/lib/commonjs/gesture-handler/defaults.js +0 -45
- package/lib/commonjs/gesture-handler/fabricUtils.js +0 -66
- package/lib/commonjs/gesture-handler/fabricUtils.web.js +0 -17
- package/lib/commonjs/gesture-handler/index.js +0 -14
- package/lib/commonjs/native-stack/contexts/GHContext.js +0 -12
- package/lib/commonjs/native-stack/index.js +0 -49
- package/lib/commonjs/native-stack/navigators/createNativeStackNavigator.js +0 -76
- package/lib/commonjs/native-stack/types.js +0 -6
- package/lib/commonjs/native-stack/utils/AnimatedHeaderHeightContext.js +0 -12
- package/lib/commonjs/native-stack/utils/HeaderHeightContext.js +0 -12
- package/lib/commonjs/native-stack/utils/SafeAreaProviderCompat.js +0 -75
- package/lib/commonjs/native-stack/utils/getDefaultHeaderHeight.js +0 -35
- package/lib/commonjs/native-stack/utils/getStatusBarHeight.js +0 -22
- package/lib/commonjs/native-stack/utils/useAnimatedHeaderHeight.js +0 -19
- package/lib/commonjs/native-stack/utils/useBackPressSubscription.js +0 -52
- package/lib/commonjs/native-stack/utils/useHeaderHeight.js +0 -19
- package/lib/commonjs/native-stack/views/FontProcessor.js +0 -19
- package/lib/commonjs/native-stack/views/FooterComponent.js +0 -17
- package/lib/commonjs/native-stack/views/HeaderConfig.js +0 -149
- package/lib/commonjs/native-stack/views/NativeStackView.js +0 -420
- package/lib/commonjs/reanimated/ReanimatedHeaderHeightContext.js +0 -12
- package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js +0 -95
- package/lib/commonjs/reanimated/ReanimatedScreen.js +0 -22
- package/lib/commonjs/reanimated/ReanimatedScreenProvider.js +0 -39
- package/lib/commonjs/reanimated/ReanimatedTransitionProgressContext.js +0 -12
- package/lib/commonjs/reanimated/index.js +0 -28
- package/lib/commonjs/reanimated/useReanimatedHeaderHeight.js +0 -19
- package/lib/commonjs/reanimated/useReanimatedTransitionProgress.js +0 -19
- package/lib/commonjs/types.js +0 -6
- package/lib/commonjs/useTransitionProgress.js +0 -19
- package/lib/commonjs/utils.js +0 -43
- package/lib/module/TransitionProgressContext.js +0 -5
- package/lib/module/components/DebugContainer.js +0 -30
- package/lib/module/components/DebugContainer.web.js +0 -6
- package/lib/module/components/FullWindowOverlay.js +0 -24
- package/lib/module/components/FullWindowOverlay.web.js +0 -3
- package/lib/module/components/Screen.js +0 -282
- package/lib/module/components/Screen.web.js +0 -40
- package/lib/module/components/ScreenContainer.js +0 -26
- package/lib/module/components/ScreenContainer.web.js +0 -4
- package/lib/module/components/ScreenContentWrapper.js +0 -10
- package/lib/module/components/ScreenContentWrapper.web.js +0 -4
- package/lib/module/components/ScreenFooter.js +0 -18
- package/lib/module/components/ScreenFooter.web.js +0 -6
- package/lib/module/components/ScreenStack.js +0 -63
- package/lib/module/components/ScreenStack.web.js +0 -4
- package/lib/module/components/ScreenStackHeaderConfig.js +0 -81
- package/lib/module/components/ScreenStackHeaderConfig.web.js +0 -14
- package/lib/module/components/ScreenStackItem.js +0 -98
- package/lib/module/components/SearchBar.js +0 -57
- package/lib/module/components/SearchBar.web.js +0 -4
- package/lib/module/components/helpers/DelayedFreeze.js +0 -24
- package/lib/module/components/helpers/usePrevious.js +0 -9
- package/lib/module/contexts.js +0 -4
- package/lib/module/core.js +0 -31
- package/lib/module/fabric/FullWindowOverlayNativeComponent.js +0 -20
- package/lib/module/fabric/ModalScreenNativeComponent.js +0 -10
- package/lib/module/fabric/NativeScreensModule.js +0 -5
- package/lib/module/fabric/NativeScreensModule.web.js +0 -2
- package/lib/module/fabric/ScreenContainerNativeComponent.js +0 -24
- package/lib/module/fabric/ScreenContentWrapperNativeComponent.js +0 -10
- package/lib/module/fabric/ScreenFooterNativeComponent.js +0 -3
- package/lib/module/fabric/ScreenNativeComponent.js +0 -66
- package/lib/module/fabric/ScreenNavigationContainerNativeComponent.js +0 -6
- package/lib/module/fabric/ScreenStackHeaderConfigNativeComponent.js +0 -29
- package/lib/module/fabric/ScreenStackHeaderSubviewNativeComponent.js +0 -11
- package/lib/module/fabric/ScreenStackNativeComponent.js +0 -28
- package/lib/module/fabric/SearchBarNativeComponent.js +0 -12
- package/lib/module/gesture-handler/GestureDetectorProvider.js +0 -12
- package/lib/module/gesture-handler/RNScreensTurboModule.js +0 -2
- package/lib/module/gesture-handler/ScreenGestureDetector.js +0 -193
- package/lib/module/gesture-handler/constraints.js +0 -56
- package/lib/module/gesture-handler/defaults.js +0 -39
- package/lib/module/gesture-handler/fabricUtils.js +0 -61
- package/lib/module/gesture-handler/fabricUtils.web.js +0 -10
- package/lib/module/gesture-handler/index.js +0 -5
- package/lib/module/index.js +0 -33
- package/lib/module/native-stack/contexts/GHContext.js +0 -6
- package/lib/module/native-stack/index.js +0 -22
- package/lib/module/native-stack/navigators/createNativeStackNavigator.js +0 -73
- package/lib/module/native-stack/types.js +0 -2
- package/lib/module/native-stack/utils/AnimatedHeaderHeightContext.js +0 -4
- package/lib/module/native-stack/utils/HeaderHeightContext.js +0 -4
- package/lib/module/native-stack/utils/SafeAreaProviderCompat.js +0 -68
- package/lib/module/native-stack/utils/getDefaultHeaderHeight.js +0 -29
- package/lib/module/native-stack/utils/getStatusBarHeight.js +0 -16
- package/lib/module/native-stack/utils/useAnimatedHeaderHeight.js +0 -10
- package/lib/module/native-stack/utils/useBackPressSubscription.js +0 -45
- package/lib/module/native-stack/utils/useHeaderHeight.js +0 -10
- package/lib/module/native-stack/views/FontProcessor.js +0 -12
- package/lib/module/native-stack/views/FooterComponent.js +0 -10
- package/lib/module/native-stack/views/HeaderConfig.js +0 -139
- package/lib/module/native-stack/views/NativeStackView.js +0 -423
- package/lib/module/reanimated/ReanimatedHeaderHeightContext.js +0 -5
- package/lib/module/reanimated/ReanimatedNativeStackScreen.js +0 -93
- package/lib/module/reanimated/ReanimatedScreen.js +0 -16
- package/lib/module/reanimated/ReanimatedScreenProvider.js +0 -32
- package/lib/module/reanimated/ReanimatedTransitionProgressContext.js +0 -5
- package/lib/module/reanimated/index.js +0 -4
- package/lib/module/reanimated/useReanimatedHeaderHeight.js +0 -10
- package/lib/module/reanimated/useReanimatedTransitionProgress.js +0 -10
- package/lib/module/types.js +0 -2
- package/lib/module/useTransitionProgress.js +0 -10
- package/lib/module/utils.js +0 -35
- package/src/TransitionProgressContext.tsx +0 -14
- package/src/components/DebugContainer.tsx +0 -46
- package/src/components/DebugContainer.web.tsx +0 -7
- package/src/components/FullWindowOverlay.tsx +0 -33
- package/src/components/FullWindowOverlay.web.tsx +0 -6
- package/src/components/Screen.tsx +0 -392
- package/src/components/Screen.web.tsx +0 -46
- package/src/components/ScreenContainer.tsx +0 -28
- package/src/components/ScreenContainer.web.tsx +0 -5
- package/src/components/ScreenContentWrapper.tsx +0 -9
- package/src/components/ScreenContentWrapper.web.tsx +0 -5
- package/src/components/ScreenFooter.tsx +0 -20
- package/src/components/ScreenFooter.web.tsx +0 -7
- package/src/components/ScreenStack.tsx +0 -112
- package/src/components/ScreenStack.web.tsx +0 -5
- package/src/components/ScreenStackHeaderConfig.tsx +0 -122
- package/src/components/ScreenStackHeaderConfig.web.tsx +0 -39
- package/src/components/ScreenStackItem.tsx +0 -174
- package/src/components/SearchBar.tsx +0 -102
- package/src/components/SearchBar.web.tsx +0 -5
- package/src/components/helpers/DelayedFreeze.tsx +0 -27
- package/src/components/helpers/usePrevious.tsx +0 -11
- package/src/contexts.tsx +0 -9
- package/src/core.ts +0 -45
- package/src/fabric/FullWindowOverlayNativeComponent.ts +0 -23
- package/src/fabric/ModalScreenNativeComponent.ts +0 -115
- package/src/fabric/NativeScreensModule.ts +0 -8
- package/src/fabric/NativeScreensModule.web.ts +0 -1
- package/src/fabric/ScreenContainerNativeComponent.ts +0 -28
- package/src/fabric/ScreenContentWrapperNativeComponent.ts +0 -14
- package/src/fabric/ScreenFooterNativeComponent.ts +0 -6
- package/src/fabric/ScreenNativeComponent.ts +0 -171
- package/src/fabric/ScreenNavigationContainerNativeComponent.ts +0 -12
- package/src/fabric/ScreenStackHeaderConfigNativeComponent.ts +0 -97
- package/src/fabric/ScreenStackHeaderSubviewNativeComponent.ts +0 -26
- package/src/fabric/ScreenStackNativeComponent.ts +0 -34
- package/src/fabric/SearchBarNativeComponent.ts +0 -83
- package/src/gesture-handler/GestureDetectorProvider.tsx +0 -16
- package/src/gesture-handler/RNScreensTurboModule.ts +0 -13
- package/src/gesture-handler/ScreenGestureDetector.tsx +0 -241
- package/src/gesture-handler/constraints.ts +0 -87
- package/src/gesture-handler/defaults.ts +0 -46
- package/src/gesture-handler/fabricUtils.ts +0 -86
- package/src/gesture-handler/fabricUtils.web.ts +0 -10
- package/src/gesture-handler/index.tsx +0 -4
- package/src/native-stack/contexts/GHContext.tsx +0 -9
- package/src/native-stack/index.tsx +0 -27
- package/src/native-stack/navigators/createNativeStackNavigator.tsx +0 -110
- package/src/native-stack/types.tsx +0 -659
- package/src/native-stack/utils/AnimatedHeaderHeightContext.tsx +0 -8
- package/src/native-stack/utils/HeaderHeightContext.tsx +0 -5
- package/src/native-stack/utils/SafeAreaProviderCompat.tsx +0 -78
- package/src/native-stack/utils/getDefaultHeaderHeight.tsx +0 -41
- package/src/native-stack/utils/getStatusBarHeight.tsx +0 -22
- package/src/native-stack/utils/useAnimatedHeaderHeight.tsx +0 -15
- package/src/native-stack/utils/useBackPressSubscription.tsx +0 -66
- package/src/native-stack/utils/useHeaderHeight.tsx +0 -15
- package/src/native-stack/views/FontProcessor.tsx +0 -14
- package/src/native-stack/views/FooterComponent.tsx +0 -10
- package/src/native-stack/views/HeaderConfig.tsx +0 -202
- package/src/native-stack/views/NativeStackView.tsx +0 -550
- package/src/reanimated/ReanimatedHeaderHeightContext.tsx +0 -7
- package/src/reanimated/ReanimatedNativeStackScreen.tsx +0 -132
- package/src/reanimated/ReanimatedScreen.tsx +0 -26
- package/src/reanimated/ReanimatedScreenProvider.tsx +0 -43
- package/src/reanimated/ReanimatedTransitionProgressContext.tsx +0 -13
- package/src/reanimated/index.tsx +0 -3
- package/src/reanimated/useReanimatedHeaderHeight.tsx +0 -14
- package/src/reanimated/useReanimatedTransitionProgress.tsx +0 -14
- package/src/types.tsx +0 -869
- package/src/useTransitionProgress.tsx +0 -15
- package/src/utils.ts +0 -40
|
@@ -1,81 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { Image, Platform, StyleSheet } from 'react-native';
|
|
6
|
-
|
|
7
|
-
// Native components
|
|
8
|
-
import ScreenStackHeaderConfigNativeComponent from '../fabric/ScreenStackHeaderConfigNativeComponent';
|
|
9
|
-
import ScreenStackHeaderSubviewNativeComponent from '../fabric/ScreenStackHeaderSubviewNativeComponent';
|
|
10
|
-
export const ScreenStackHeaderSubview = ScreenStackHeaderSubviewNativeComponent;
|
|
11
|
-
export const ScreenStackHeaderConfig = /*#__PURE__*/React.forwardRef((props, ref) => /*#__PURE__*/React.createElement(ScreenStackHeaderConfigNativeComponent, _extends({}, props, {
|
|
12
|
-
ref: ref,
|
|
13
|
-
style: styles.headerConfig,
|
|
14
|
-
pointerEvents: "box-none"
|
|
15
|
-
})));
|
|
16
|
-
ScreenStackHeaderConfig.displayName = 'ScreenStackHeaderConfig';
|
|
17
|
-
export const ScreenStackHeaderBackButtonImage = props => /*#__PURE__*/React.createElement(ScreenStackHeaderSubview, {
|
|
18
|
-
type: "back",
|
|
19
|
-
style: styles.headerSubview
|
|
20
|
-
}, /*#__PURE__*/React.createElement(Image, _extends({
|
|
21
|
-
resizeMode: "center",
|
|
22
|
-
fadeDuration: 0
|
|
23
|
-
}, props)));
|
|
24
|
-
export const ScreenStackHeaderRightView = props => {
|
|
25
|
-
const {
|
|
26
|
-
style,
|
|
27
|
-
...rest
|
|
28
|
-
} = props;
|
|
29
|
-
return /*#__PURE__*/React.createElement(ScreenStackHeaderSubview, _extends({}, rest, {
|
|
30
|
-
type: "right",
|
|
31
|
-
style: [styles.headerSubview, style]
|
|
32
|
-
}));
|
|
33
|
-
};
|
|
34
|
-
export const ScreenStackHeaderLeftView = props => {
|
|
35
|
-
const {
|
|
36
|
-
style,
|
|
37
|
-
...rest
|
|
38
|
-
} = props;
|
|
39
|
-
return /*#__PURE__*/React.createElement(ScreenStackHeaderSubview, _extends({}, rest, {
|
|
40
|
-
type: "left",
|
|
41
|
-
style: [styles.headerSubview, style]
|
|
42
|
-
}));
|
|
43
|
-
};
|
|
44
|
-
export const ScreenStackHeaderCenterView = props => {
|
|
45
|
-
const {
|
|
46
|
-
style,
|
|
47
|
-
...rest
|
|
48
|
-
} = props;
|
|
49
|
-
return /*#__PURE__*/React.createElement(ScreenStackHeaderSubview, _extends({}, rest, {
|
|
50
|
-
type: "center",
|
|
51
|
-
style: [styles.headerSubviewCenter, style]
|
|
52
|
-
}));
|
|
53
|
-
};
|
|
54
|
-
export const ScreenStackHeaderSearchBarView = props => /*#__PURE__*/React.createElement(ScreenStackHeaderSubview, _extends({}, props, {
|
|
55
|
-
type: "searchBar",
|
|
56
|
-
style: styles.headerSubview
|
|
57
|
-
}));
|
|
58
|
-
const styles = StyleSheet.create({
|
|
59
|
-
headerSubview: {
|
|
60
|
-
flexDirection: 'row',
|
|
61
|
-
alignItems: 'center',
|
|
62
|
-
justifyContent: 'center'
|
|
63
|
-
},
|
|
64
|
-
headerSubviewCenter: {
|
|
65
|
-
flexDirection: 'row',
|
|
66
|
-
alignItems: 'center',
|
|
67
|
-
justifyContent: 'center',
|
|
68
|
-
flexShrink: 1
|
|
69
|
-
},
|
|
70
|
-
headerConfig: {
|
|
71
|
-
position: 'absolute',
|
|
72
|
-
top: '-100%',
|
|
73
|
-
width: '100%',
|
|
74
|
-
flexDirection: 'row',
|
|
75
|
-
justifyContent: 'space-between',
|
|
76
|
-
// We only want to center align the subviews on iOS.
|
|
77
|
-
// See https://github.com/software-mansion/react-native-screens/pull/2456
|
|
78
|
-
alignItems: Platform.OS === 'ios' ? 'center' : undefined
|
|
79
|
-
}
|
|
80
|
-
});
|
|
81
|
-
//# sourceMappingURL=ScreenStackHeaderConfig.js.map
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import { Image, View } from 'react-native';
|
|
3
|
-
import React from 'react';
|
|
4
|
-
export const ScreenStackHeaderBackButtonImage = props => /*#__PURE__*/React.createElement(View, null, /*#__PURE__*/React.createElement(Image, _extends({
|
|
5
|
-
resizeMode: "center",
|
|
6
|
-
fadeDuration: 0
|
|
7
|
-
}, props)));
|
|
8
|
-
export const ScreenStackHeaderRightView = props => /*#__PURE__*/React.createElement(View, props);
|
|
9
|
-
export const ScreenStackHeaderLeftView = props => /*#__PURE__*/React.createElement(View, props);
|
|
10
|
-
export const ScreenStackHeaderCenterView = props => /*#__PURE__*/React.createElement(View, props);
|
|
11
|
-
export const ScreenStackHeaderSearchBarView = props => /*#__PURE__*/React.createElement(View, props);
|
|
12
|
-
export const ScreenStackHeaderConfig = props => /*#__PURE__*/React.createElement(View, props);
|
|
13
|
-
export const ScreenStackHeaderSubview = View;
|
|
14
|
-
//# sourceMappingURL=ScreenStackHeaderConfig.web.js.map
|
|
@@ -1,98 +0,0 @@
|
|
|
1
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
2
|
-
import * as React from 'react';
|
|
3
|
-
import { Platform, StyleSheet } from 'react-native';
|
|
4
|
-
import warnOnce from 'warn-once';
|
|
5
|
-
import DebugContainer from './DebugContainer';
|
|
6
|
-
import { ScreenStackHeaderConfig } from './ScreenStackHeaderConfig';
|
|
7
|
-
import Screen from './Screen';
|
|
8
|
-
import ScreenStack from './ScreenStack';
|
|
9
|
-
import { RNSScreensRefContext } from '../contexts';
|
|
10
|
-
import { FooterComponent } from './ScreenFooter';
|
|
11
|
-
function ScreenStackItem({
|
|
12
|
-
children,
|
|
13
|
-
headerConfig,
|
|
14
|
-
activityState,
|
|
15
|
-
shouldFreeze,
|
|
16
|
-
stackPresentation,
|
|
17
|
-
contentStyle,
|
|
18
|
-
style,
|
|
19
|
-
screenId,
|
|
20
|
-
// eslint-disable-next-line camelcase
|
|
21
|
-
unstable_sheetFooter,
|
|
22
|
-
...rest
|
|
23
|
-
}, ref) {
|
|
24
|
-
const currentScreenRef = React.useRef(null);
|
|
25
|
-
const screenRefs = React.useContext(RNSScreensRefContext);
|
|
26
|
-
React.useImperativeHandle(ref, () => currentScreenRef.current);
|
|
27
|
-
const isHeaderInModal =
|
|
28
|
-
// amznmod_react - return false for Modal on kepler because native component is not implemented yet
|
|
29
|
-
// @ts-ignore
|
|
30
|
-
Platform.OS === 'android' || Platform.OS === 'kepler' ? false : stackPresentation !== 'push' && headerConfig?.hidden === false;
|
|
31
|
-
const headerHiddenPreviousRef = React.useRef(headerConfig?.hidden);
|
|
32
|
-
React.useEffect(() => {
|
|
33
|
-
warnOnce(Platform.OS !== 'android' && stackPresentation !== 'push' && headerHiddenPreviousRef.current !== headerConfig?.hidden, `Dynamically changing header's visibility in modals will result in remounting the screen and losing all local state.`);
|
|
34
|
-
headerHiddenPreviousRef.current = headerConfig?.hidden;
|
|
35
|
-
}, [headerConfig?.hidden, stackPresentation]);
|
|
36
|
-
const content = /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(DebugContainer, {
|
|
37
|
-
style: [stackPresentation === 'formSheet' ? Platform.OS === 'ios' ? styles.absolute : null : styles.container, contentStyle],
|
|
38
|
-
stackPresentation: stackPresentation ?? 'push'
|
|
39
|
-
}, children), /*#__PURE__*/React.createElement(ScreenStackHeaderConfig, headerConfig), stackPresentation === 'formSheet' && unstable_sheetFooter && /*#__PURE__*/React.createElement(FooterComponent, null, unstable_sheetFooter()));
|
|
40
|
-
|
|
41
|
-
// We take backgroundColor from contentStyle and apply it on Screen.
|
|
42
|
-
// This allows to workaround one issue with truncated
|
|
43
|
-
// content with formSheet presentation.
|
|
44
|
-
let internalScreenStyle;
|
|
45
|
-
if (stackPresentation === 'formSheet' && contentStyle) {
|
|
46
|
-
const flattenContentStyles = StyleSheet.flatten(contentStyle);
|
|
47
|
-
internalScreenStyle = {
|
|
48
|
-
backgroundColor: flattenContentStyles?.backgroundColor
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
return /*#__PURE__*/React.createElement(Screen, _extends({
|
|
52
|
-
ref: node => {
|
|
53
|
-
currentScreenRef.current = node;
|
|
54
|
-
if (screenRefs === null) {
|
|
55
|
-
console.warn('Looks like RNSScreensRefContext is missing. Make sure the ScreenStack component is wrapped in it');
|
|
56
|
-
return;
|
|
57
|
-
}
|
|
58
|
-
const currentRefs = screenRefs.current;
|
|
59
|
-
if (node === null) {
|
|
60
|
-
// eslint-disable-next-line @typescript-eslint/no-dynamic-delete
|
|
61
|
-
delete currentRefs[screenId];
|
|
62
|
-
} else {
|
|
63
|
-
currentRefs[screenId] = {
|
|
64
|
-
current: node
|
|
65
|
-
};
|
|
66
|
-
}
|
|
67
|
-
},
|
|
68
|
-
enabled: true,
|
|
69
|
-
isNativeStack: true,
|
|
70
|
-
activityState: activityState,
|
|
71
|
-
shouldFreeze: shouldFreeze,
|
|
72
|
-
stackPresentation: stackPresentation,
|
|
73
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
74
|
-
style: [style, internalScreenStyle]
|
|
75
|
-
}, rest), isHeaderInModal ? /*#__PURE__*/React.createElement(ScreenStack, {
|
|
76
|
-
style: styles.container
|
|
77
|
-
}, /*#__PURE__*/React.createElement(Screen, {
|
|
78
|
-
enabled: true,
|
|
79
|
-
isNativeStack: true,
|
|
80
|
-
activityState: activityState,
|
|
81
|
-
shouldFreeze: shouldFreeze,
|
|
82
|
-
hasLargeHeader: headerConfig?.largeTitle ?? false,
|
|
83
|
-
style: StyleSheet.absoluteFill
|
|
84
|
-
}, content)) : content);
|
|
85
|
-
}
|
|
86
|
-
export default /*#__PURE__*/React.forwardRef(ScreenStackItem);
|
|
87
|
-
const styles = StyleSheet.create({
|
|
88
|
-
container: {
|
|
89
|
-
flex: 1
|
|
90
|
-
},
|
|
91
|
-
absolute: {
|
|
92
|
-
position: 'absolute',
|
|
93
|
-
top: 0,
|
|
94
|
-
start: 0,
|
|
95
|
-
end: 0
|
|
96
|
-
}
|
|
97
|
-
});
|
|
98
|
-
//# sourceMappingURL=ScreenStackItem.js.map
|
|
@@ -1,57 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
4
|
-
import React from 'react';
|
|
5
|
-
import { isSearchBarAvailableForCurrentPlatform } from '../utils';
|
|
6
|
-
import { View } from 'react-native';
|
|
7
|
-
|
|
8
|
-
// Native components
|
|
9
|
-
import SearchBarNativeComponent, { Commands as SearchBarNativeCommands } from '../fabric/SearchBarNativeComponent';
|
|
10
|
-
const NativeSearchBar = SearchBarNativeComponent;
|
|
11
|
-
const NativeSearchBarCommands = SearchBarNativeCommands;
|
|
12
|
-
function SearchBar(props, ref) {
|
|
13
|
-
const searchBarRef = React.useRef(null);
|
|
14
|
-
React.useImperativeHandle(ref, () => ({
|
|
15
|
-
blur: () => {
|
|
16
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.blur(ref));
|
|
17
|
-
},
|
|
18
|
-
focus: () => {
|
|
19
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.focus(ref));
|
|
20
|
-
},
|
|
21
|
-
toggleCancelButton: flag => {
|
|
22
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.toggleCancelButton(ref, flag));
|
|
23
|
-
},
|
|
24
|
-
clearText: () => {
|
|
25
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.clearText(ref));
|
|
26
|
-
},
|
|
27
|
-
setText: text => {
|
|
28
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.setText(ref, text));
|
|
29
|
-
},
|
|
30
|
-
cancelSearch: () => {
|
|
31
|
-
_callMethodWithRef(ref => NativeSearchBarCommands.cancelSearch(ref));
|
|
32
|
-
}
|
|
33
|
-
}));
|
|
34
|
-
const _callMethodWithRef = React.useCallback(method => {
|
|
35
|
-
const ref = searchBarRef.current;
|
|
36
|
-
if (ref) {
|
|
37
|
-
method(ref);
|
|
38
|
-
} else {
|
|
39
|
-
console.warn('Reference to native search bar component has not been updated yet');
|
|
40
|
-
}
|
|
41
|
-
}, [searchBarRef]);
|
|
42
|
-
if (!isSearchBarAvailableForCurrentPlatform) {
|
|
43
|
-
console.warn('Importing SearchBar is only valid on iOS and Android devices.');
|
|
44
|
-
return View;
|
|
45
|
-
}
|
|
46
|
-
return /*#__PURE__*/React.createElement(NativeSearchBar, _extends({
|
|
47
|
-
ref: searchBarRef
|
|
48
|
-
}, props, {
|
|
49
|
-
onSearchFocus: props.onFocus,
|
|
50
|
-
onSearchBlur: props.onBlur,
|
|
51
|
-
onSearchButtonPress: props.onSearchButtonPress,
|
|
52
|
-
onCancelButtonPress: props.onCancelButtonPress,
|
|
53
|
-
onChangeText: props.onChangeText
|
|
54
|
-
}));
|
|
55
|
-
}
|
|
56
|
-
export default /*#__PURE__*/React.forwardRef(SearchBar);
|
|
57
|
-
//# sourceMappingURL=SearchBar.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { Freeze } from 'react-freeze';
|
|
3
|
-
// This component allows one more render before freezing the screen.
|
|
4
|
-
// Allows activityState to reach the native side and useIsFocused to work correctly.
|
|
5
|
-
function DelayedFreeze({
|
|
6
|
-
freeze,
|
|
7
|
-
children
|
|
8
|
-
}) {
|
|
9
|
-
// flag used for determining whether freeze should be enabled
|
|
10
|
-
const [freezeState, setFreezeState] = React.useState(false);
|
|
11
|
-
React.useEffect(() => {
|
|
12
|
-
const id = setImmediate(() => {
|
|
13
|
-
setFreezeState(freeze);
|
|
14
|
-
});
|
|
15
|
-
return () => {
|
|
16
|
-
clearImmediate(id);
|
|
17
|
-
};
|
|
18
|
-
}, [freeze]);
|
|
19
|
-
return /*#__PURE__*/React.createElement(Freeze, {
|
|
20
|
-
freeze: freeze ? freezeState : false
|
|
21
|
-
}, children);
|
|
22
|
-
}
|
|
23
|
-
export default DelayedFreeze;
|
|
24
|
-
//# sourceMappingURL=DelayedFreeze.js.map
|
package/lib/module/contexts.js
DELETED
|
@@ -1,4 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
export const GHContext = /*#__PURE__*/React.createContext(props => /*#__PURE__*/React.createElement(React.Fragment, null, props.children));
|
|
3
|
-
export const RNSScreensRefContext = /*#__PURE__*/React.createContext(null);
|
|
4
|
-
//# sourceMappingURL=contexts.js.map
|
package/lib/module/core.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import { Platform, UIManager } from 'react-native';
|
|
4
|
-
export const isNativePlatformSupported = Platform.OS === 'ios' || Platform.OS === 'android' || Platform.OS === 'windows' ||
|
|
5
|
-
// amznmod_react - add Kepler support
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
Platform.OS === 'kepler';
|
|
8
|
-
let ENABLE_SCREENS = isNativePlatformSupported;
|
|
9
|
-
export function enableScreens(shouldEnableScreens = true) {
|
|
10
|
-
ENABLE_SCREENS = shouldEnableScreens;
|
|
11
|
-
if (!isNativePlatformSupported) {
|
|
12
|
-
return;
|
|
13
|
-
}
|
|
14
|
-
if (ENABLE_SCREENS && !UIManager.getViewManagerConfig('RNSScreen')) {
|
|
15
|
-
console.error(`Screen native module hasn't been linked. Please check the react-native-screens README for more details`);
|
|
16
|
-
}
|
|
17
|
-
}
|
|
18
|
-
let ENABLE_FREEZE = false;
|
|
19
|
-
export function enableFreeze(shouldEnableReactFreeze = true) {
|
|
20
|
-
if (!isNativePlatformSupported) {
|
|
21
|
-
return;
|
|
22
|
-
}
|
|
23
|
-
ENABLE_FREEZE = shouldEnableReactFreeze;
|
|
24
|
-
}
|
|
25
|
-
export function screensEnabled() {
|
|
26
|
-
return ENABLE_SCREENS;
|
|
27
|
-
}
|
|
28
|
-
export function freezeEnabled() {
|
|
29
|
-
return ENABLE_FREEZE;
|
|
30
|
-
}
|
|
31
|
-
//# sourceMappingURL=core.js.map
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
|
|
7
|
-
*
|
|
8
|
-
* Amazon modifications are indicated by [amznmod_* comments].
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Changelog:
|
|
13
|
-
* Set up react-native-screens package to build for Kepler
|
|
14
|
-
*/
|
|
15
|
-
|
|
16
|
-
// amznmod_react - register component on Kepler
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
19
|
-
export default codegenNativeComponent('RNSFullWindowOverlay', {});
|
|
20
|
-
//# sourceMappingURL=FullWindowOverlayNativeComponent.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
4
|
-
|
|
5
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
6
|
-
|
|
7
|
-
export default codegenNativeComponent('RNSModalScreen', {
|
|
8
|
-
interfaceOnly: true
|
|
9
|
-
});
|
|
10
|
-
//# sourceMappingURL=ModalScreenNativeComponent.js.map
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
|
|
7
|
-
*
|
|
8
|
-
* Amazon modifications are indicated by [amznmod_* comments].
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Changelog:
|
|
13
|
-
* Set up react-native-screens package to build for Kepler
|
|
14
|
-
*/
|
|
15
|
-
// amznmod_react - register component on Kepler
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
18
|
-
// amznmod_react - register component on Kepler
|
|
19
|
-
const ContainerComponent = 'RNSScreenContainer';
|
|
20
|
-
register(ContainerComponent, {
|
|
21
|
-
uiViewClassName: ContainerComponent
|
|
22
|
-
});
|
|
23
|
-
export default ContainerComponent;
|
|
24
|
-
//# sourceMappingURL=ScreenContainerNativeComponent.js.map
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
// amznmod_react - register component on Kepler
|
|
2
|
-
// @ts-ignore
|
|
3
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
4
|
-
// amznmod_react - register component on Kepler
|
|
5
|
-
const ScreenContentWrapperComponent = 'RNSScreenContentWrapper';
|
|
6
|
-
register(ScreenContentWrapperComponent, {
|
|
7
|
-
uiViewClassName: ScreenContentWrapperComponent
|
|
8
|
-
});
|
|
9
|
-
export default ScreenContentWrapperComponent;
|
|
10
|
-
//# sourceMappingURL=ScreenContentWrapperNativeComponent.js.map
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
|
|
7
|
-
*
|
|
8
|
-
* Amazon modifications are indicated by [amznmod_* comments].
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Changelog:
|
|
13
|
-
* Set up react-native-screens package to build for Kepler
|
|
14
|
-
*/
|
|
15
|
-
// amznmod_react - register component on Kepler
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
20
|
-
|
|
21
|
-
// amznmod_react - register component on Kepler
|
|
22
|
-
const ScreenComponent = 'RNSScreen';
|
|
23
|
-
const viewConfig = {
|
|
24
|
-
activityState: true,
|
|
25
|
-
stackPresentation: true,
|
|
26
|
-
stackAnimation: true
|
|
27
|
-
};
|
|
28
|
-
const bubblingEventTypes = {
|
|
29
|
-
topAppear: {
|
|
30
|
-
phasedRegistrationNames: {
|
|
31
|
-
bubbled: 'onAppear',
|
|
32
|
-
captured: 'onAppearCapture'
|
|
33
|
-
}
|
|
34
|
-
},
|
|
35
|
-
topDisappear: {
|
|
36
|
-
phasedRegistrationNames: {
|
|
37
|
-
bubbled: 'onDisappear',
|
|
38
|
-
captured: 'onDisappearCapture'
|
|
39
|
-
}
|
|
40
|
-
},
|
|
41
|
-
topWillAppear: {
|
|
42
|
-
phasedRegistrationNames: {
|
|
43
|
-
bubbled: 'onWillAppear',
|
|
44
|
-
captured: 'onWillAppearCapture'
|
|
45
|
-
}
|
|
46
|
-
},
|
|
47
|
-
topWillDisappear: {
|
|
48
|
-
phasedRegistrationNames: {
|
|
49
|
-
bubbled: 'onWillDisappear',
|
|
50
|
-
captured: 'onWillDisappearCapture'
|
|
51
|
-
}
|
|
52
|
-
},
|
|
53
|
-
topTransitionProgress: {
|
|
54
|
-
phasedRegistrationNames: {
|
|
55
|
-
bubbled: 'onTransitionProgress',
|
|
56
|
-
captured: 'onTransitionProgressCapture'
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
};
|
|
60
|
-
register(ScreenComponent, {
|
|
61
|
-
uiViewClassName: ScreenComponent,
|
|
62
|
-
validAttributes: viewConfig,
|
|
63
|
-
bubblingEventTypes: bubblingEventTypes
|
|
64
|
-
});
|
|
65
|
-
export default ScreenComponent;
|
|
66
|
-
//# sourceMappingURL=ScreenNativeComponent.js.map
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
-
export default codegenNativeComponent('RNSScreenNavigationContainer', {});
|
|
6
|
-
//# sourceMappingURL=ScreenNavigationContainerNativeComponent.js.map
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
|
|
7
|
-
*
|
|
8
|
-
* Amazon modifications are indicated by [amznmod_* comments].
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Changelog:
|
|
13
|
-
* Set up react-native-screens package to build for Kepler
|
|
14
|
-
*/
|
|
15
|
-
// amznmod_react - register component on Kepler
|
|
16
|
-
// @ts-ignore
|
|
17
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
18
|
-
|
|
19
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
20
|
-
|
|
21
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
22
|
-
|
|
23
|
-
// amznmod_react - register component on Kepler
|
|
24
|
-
const ScreenStackHeaderConfigComponent = 'RNSScreenStackHeaderConfig';
|
|
25
|
-
register(ScreenStackHeaderConfigComponent, {
|
|
26
|
-
uiViewClassName: ScreenStackHeaderConfigComponent
|
|
27
|
-
});
|
|
28
|
-
export default ScreenStackHeaderConfigComponent;
|
|
29
|
-
//# sourceMappingURL=ScreenStackHeaderConfigNativeComponent.js.map
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
// @ts-ignore
|
|
4
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
5
|
-
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
|
|
8
|
-
export default codegenNativeComponent('RNSScreenStackHeaderSubview', {
|
|
9
|
-
interfaceOnly: true
|
|
10
|
-
});
|
|
11
|
-
//# sourceMappingURL=ScreenStackHeaderSubviewNativeComponent.js.map
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/*
|
|
4
|
-
* Portions of this file are copyright (c) 2025 Amazon.com, Inc. or its affiliates. All rights reserved.
|
|
5
|
-
*
|
|
6
|
-
* PORTIONS OF THIS FILE ARE AMAZON PROPRIETARY/CONFIDENTIAL. USE IS SUBJECT TO LICENSE TERMS.
|
|
7
|
-
*
|
|
8
|
-
* Amazon modifications are indicated by [amznmod_* comments].
|
|
9
|
-
*/
|
|
10
|
-
|
|
11
|
-
/*
|
|
12
|
-
* Changelog:
|
|
13
|
-
* Set up react-native-screens package to build for Kepler
|
|
14
|
-
*/
|
|
15
|
-
// @ts-ignore
|
|
16
|
-
// amznmod_react - register component on Kepler
|
|
17
|
-
// @ts-ignore
|
|
18
|
-
import register from '@amazon-devices/react-native-kepler/Libraries/Utilities/registerGeneratedViewConfig';
|
|
19
|
-
|
|
20
|
-
// eslint-disable-next-line @typescript-eslint/ban-types
|
|
21
|
-
|
|
22
|
-
// amznmod_react - register component on Kepler
|
|
23
|
-
const ScreenStackComponent = 'RNSScreenStack';
|
|
24
|
-
register(ScreenStackComponent, {
|
|
25
|
-
uiViewClassName: ScreenStackComponent
|
|
26
|
-
});
|
|
27
|
-
export default ScreenStackComponent;
|
|
28
|
-
//# sourceMappingURL=ScreenStackNativeComponent.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
'use client';
|
|
2
|
-
|
|
3
|
-
/* eslint-disable */
|
|
4
|
-
// @ts-ignore
|
|
5
|
-
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
|
|
6
|
-
// @ts-ignore
|
|
7
|
-
import codegenNativeCommands from 'react-native/Libraries/Utilities/codegenNativeCommands';
|
|
8
|
-
export const Commands = codegenNativeCommands({
|
|
9
|
-
supportedCommands: ['blur', 'focus', 'clearText', 'toggleCancelButton', 'setText', 'cancelSearch']
|
|
10
|
-
});
|
|
11
|
-
export default codegenNativeComponent('RNSSearchBar', {});
|
|
12
|
-
//# sourceMappingURL=SearchBarNativeComponent.js.map
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import React from 'react';
|
|
2
|
-
import { GHContext } from '../contexts';
|
|
3
|
-
import ScreenGestureDetector from './ScreenGestureDetector';
|
|
4
|
-
function GHWrapper(props) {
|
|
5
|
-
return /*#__PURE__*/React.createElement(ScreenGestureDetector, props);
|
|
6
|
-
}
|
|
7
|
-
export default function GestureDetectorProvider(props) {
|
|
8
|
-
return /*#__PURE__*/React.createElement(GHContext.Provider, {
|
|
9
|
-
value: GHWrapper
|
|
10
|
-
}, props.children);
|
|
11
|
-
}
|
|
12
|
-
//# sourceMappingURL=GestureDetectorProvider.js.map
|