@office-iss/react-native-win32 0.0.0-canary.293 → 0.0.0-canary.294

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.
Files changed (47) hide show
  1. package/.flowconfig +8 -1
  2. package/CHANGELOG.json +31 -1
  3. package/CHANGELOG.md +14 -6
  4. package/IntegrationTests/ImageCachePolicyTest.js +1 -1
  5. package/IntegrationTests/LayoutEventsTest.js +1 -4
  6. package/Libraries/Animated/AnimatedExports.js.flow +126 -0
  7. package/Libraries/Animated/AnimatedImplementation.js +0 -121
  8. package/Libraries/Animated/animations/Animation.js +8 -4
  9. package/Libraries/Animated/nodes/AnimatedNode.js +2 -2
  10. package/Libraries/Animated/nodes/AnimatedValue.js +8 -4
  11. package/Libraries/BatchedBridge/NativeModules.js +2 -0
  12. package/Libraries/Blob/BlobManager.js +1 -0
  13. package/Libraries/Components/ScrollView/ScrollView.d.ts +1 -1
  14. package/Libraries/Components/ScrollView/ScrollView.js +1 -0
  15. package/Libraries/Components/TextInput/TextInput.js +1 -0
  16. package/Libraries/Components/View/ViewAccessibility.js +16 -0
  17. package/Libraries/Core/ReactNativeVersion.js +1 -1
  18. package/Libraries/NativeComponent/BaseViewConfig.android.js +1 -0
  19. package/Libraries/NativeComponent/BaseViewConfig.ios.js +1 -0
  20. package/Libraries/ReactNative/FabricUIManager.js +10 -0
  21. package/Libraries/ReactNative/getNativeComponentAttributes.js +1 -0
  22. package/Libraries/ReactPrivate/ReactNativePrivateInterface.js.flow +51 -0
  23. package/Libraries/Renderer/shims/ReactFabric.js +1 -3
  24. package/Libraries/Renderer/shims/ReactFeatureFlags.js +1 -3
  25. package/Libraries/Renderer/shims/ReactNative.js +1 -3
  26. package/Libraries/Renderer/shims/ReactNativeViewConfigRegistry.js +1 -3
  27. package/Libraries/Renderer/shims/createReactNativeComponentClass.js +1 -3
  28. package/Libraries/Settings/Settings.ios.js +1 -0
  29. package/overrides.json +6 -6
  30. package/package.json +16 -16
  31. package/src/private/featureflags/ReactNativeFeatureFlags.js +31 -6
  32. package/src/private/featureflags/specs/NativeReactNativeFeatureFlags.js +7 -2
  33. package/src/private/specs_DEPRECATED/modules/NativeAnimatedModule.js +1 -1
  34. package/src/private/specs_DEPRECATED/modules/NativeAnimatedTurboModule.js +1 -1
  35. package/src/private/webapis/performance/PerformanceEntry.js +6 -1
  36. package/src/private/webapis/performance/internals/RawPerformanceEntry.js +3 -0
  37. package/src/private/webapis/performance/specs/NativePerformance.js +10 -1
  38. package/types/index.d.ts +0 -1
  39. package/Libraries/NewAppScreen/components/Colors.js +0 -19
  40. package/Libraries/NewAppScreen/components/DebugInstructions.js +0 -39
  41. package/Libraries/NewAppScreen/components/Header.js +0 -75
  42. package/Libraries/NewAppScreen/components/HermesBadge.js +0 -51
  43. package/Libraries/NewAppScreen/components/LearnMoreLinks.js +0 -146
  44. package/Libraries/NewAppScreen/components/ReloadInstructions.js +0 -37
  45. package/Libraries/NewAppScreen/components/logo.png +0 -0
  46. package/Libraries/NewAppScreen/index.js +0 -25
  47. package/types/modules/LaunchScreen.d.ts +0 -26
@@ -1,51 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import View from '../../Components/View/View';
12
- import StyleSheet from '../../StyleSheet/StyleSheet';
13
- import Text from '../../Text/Text';
14
- import useColorScheme from '../../Utilities/useColorScheme';
15
- import Colors from './Colors';
16
- import * as React from 'react';
17
-
18
- const HermesBadge = (): React.Node => {
19
- const isDarkMode = useColorScheme() === 'dark';
20
- const version =
21
- global.HermesInternal?.getRuntimeProperties?.()['OSS Release Version'] ??
22
- '';
23
- return global.HermesInternal ? (
24
- <View style={styles.badge}>
25
- <Text
26
- style={[
27
- styles.badgeText,
28
- {
29
- color: isDarkMode ? Colors.light : Colors.dark,
30
- },
31
- ]}>
32
- {`Engine: Hermes ${version}`}
33
- </Text>
34
- </View>
35
- ) : null;
36
- };
37
-
38
- const styles = StyleSheet.create({
39
- badge: {
40
- position: 'absolute',
41
- right: 12,
42
- bottom: 8,
43
- },
44
- badgeText: {
45
- fontSize: 14,
46
- fontWeight: '600',
47
- textAlign: 'right',
48
- },
49
- });
50
-
51
- export default HermesBadge;
@@ -1,146 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import TouchableOpacity from '../../Components/Touchable/TouchableOpacity';
12
- import View from '../../Components/View/View';
13
- import openURLInBrowser from '../../Core/Devtools/openURLInBrowser';
14
- import StyleSheet from '../../StyleSheet/StyleSheet';
15
- import Text from '../../Text/Text';
16
- import useColorScheme from '../../Utilities/useColorScheme';
17
- import Colors from './Colors';
18
- import * as React from 'react';
19
-
20
- const links = [
21
- {
22
- id: 1,
23
- title: 'The Basics',
24
- link: 'https://reactnative.dev/docs/tutorial',
25
- description: 'Explains a Hello World for React Native.',
26
- },
27
- {
28
- id: 2,
29
- title: 'Style',
30
- link: 'https://reactnative.dev/docs/style',
31
- description:
32
- 'Covers how to use the prop named style which controls the visuals.',
33
- },
34
- {
35
- id: 3,
36
- title: 'Layout',
37
- link: 'https://reactnative.dev/docs/flexbox',
38
- description: 'React Native uses flexbox for layout, learn how it works.',
39
- },
40
- {
41
- id: 4,
42
- title: 'Components',
43
- link: 'https://reactnative.dev/docs/components-and-apis',
44
- description: 'The full list of components and APIs inside React Native.',
45
- },
46
- {
47
- id: 5,
48
- title: 'Navigation',
49
- link: 'https://reactnative.dev/docs/navigation',
50
- description:
51
- 'How to handle moving between screens inside your application.',
52
- },
53
- {
54
- id: 6,
55
- title: 'Networking',
56
- link: 'https://reactnative.dev/docs/network',
57
- description: 'How to use the Fetch API in React Native.',
58
- },
59
- {
60
- id: 7,
61
- title: 'Debugging',
62
- link: 'https://facebook.github.io/react-native/docs/debugging',
63
- description:
64
- 'Learn about the tools available to debug and inspect your app.',
65
- },
66
- {
67
- id: 8,
68
- title: 'Help',
69
- link: 'https://facebook.github.io/react-native/help',
70
- description:
71
- 'Need more help? There are many other React Native developers who may have the answer.',
72
- },
73
- {
74
- id: 9,
75
- title: 'Follow us',
76
- link: 'https://x.com/reactnative',
77
- description:
78
- 'Stay in touch with the community, join in on Q&As and more by following React Native on X.',
79
- },
80
- ];
81
-
82
- const LinkList = (): React.Node => {
83
- const isDarkMode = useColorScheme() === 'dark';
84
- return (
85
- <View style={styles.container}>
86
- {links.map(({id, title, link, description}) => (
87
- <React.Fragment key={id}>
88
- <View
89
- style={[
90
- styles.separator,
91
- {
92
- backgroundColor: isDarkMode ? Colors.dark : Colors.light,
93
- },
94
- ]}
95
- />
96
- <TouchableOpacity
97
- accessibilityRole="button"
98
- onPress={() => openURLInBrowser(link)}
99
- style={styles.linkContainer}>
100
- <Text style={styles.link}>{title}</Text>
101
- <Text
102
- style={[
103
- styles.description,
104
- {
105
- color: isDarkMode ? Colors.lighter : Colors.dark,
106
- },
107
- ]}>
108
- {description}
109
- </Text>
110
- </TouchableOpacity>
111
- </React.Fragment>
112
- ))}
113
- </View>
114
- );
115
- };
116
-
117
- const styles = StyleSheet.create({
118
- container: {
119
- marginTop: 32,
120
- paddingHorizontal: 24,
121
- },
122
- linkContainer: {
123
- flexWrap: 'wrap',
124
- flexDirection: 'row',
125
- justifyContent: 'space-between',
126
- alignItems: 'center',
127
- paddingVertical: 8,
128
- },
129
- link: {
130
- flex: 2,
131
- fontSize: 18,
132
- fontWeight: '400',
133
- color: Colors.primary,
134
- },
135
- description: {
136
- flex: 3,
137
- paddingVertical: 16,
138
- fontWeight: '400',
139
- fontSize: 18,
140
- },
141
- separator: {
142
- height: StyleSheet.hairlineWidth,
143
- },
144
- });
145
-
146
- export default LinkList;
@@ -1,37 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import StyleSheet from '../../StyleSheet/StyleSheet';
12
- import Text from '../../Text/Text';
13
- import Platform from '../../Utilities/Platform';
14
- import * as React from 'react';
15
-
16
- const styles = StyleSheet.create({
17
- highlight: {
18
- fontWeight: '700',
19
- },
20
- });
21
-
22
- const ReloadInstructions: () => React.Node = Platform.select({
23
- ios: () => (
24
- <Text>
25
- Press <Text style={styles.highlight}>Cmd + R</Text> in the simulator to
26
- reload your app's code.
27
- </Text>
28
- ),
29
- default: () => (
30
- <Text>
31
- Double tap <Text style={styles.highlight}>R</Text> on your keyboard to
32
- reload your app's code.
33
- </Text>
34
- ),
35
- });
36
-
37
- export default ReloadInstructions;
@@ -1,25 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @flow strict-local
8
- * @format
9
- */
10
-
11
- import Colors from './components/Colors';
12
- import DebugInstructions from './components/DebugInstructions';
13
- import Header from './components/Header';
14
- import HermesBadge from './components/HermesBadge';
15
- import LearnMoreLinks from './components/LearnMoreLinks';
16
- import ReloadInstructions from './components/ReloadInstructions';
17
-
18
- export {
19
- Colors,
20
- Header,
21
- HermesBadge,
22
- LearnMoreLinks,
23
- DebugInstructions,
24
- ReloadInstructions,
25
- };
@@ -1,26 +0,0 @@
1
- /**
2
- * Copyright (c) Meta Platforms, Inc. and affiliates.
3
- *
4
- * This source code is licensed under the MIT license found in the
5
- * LICENSE file in the root directory of this source tree.
6
- *
7
- * @format
8
- */
9
-
10
- // Adds the JSX elements used in the launch screen.
11
-
12
- declare module 'react-native/Libraries/NewAppScreen' {
13
- export const Header: any;
14
- export const LearnMoreLinks: any;
15
- export const Colors: {
16
- primary: string;
17
- white: string;
18
- lighter: string;
19
- light: string;
20
- dark: string;
21
- darker: string;
22
- black: string;
23
- };
24
- export const DebugInstructions: any;
25
- export const ReloadInstructions: any;
26
- }