@office-iss/react-native-win32 0.66.0 → 0.67.0-preview.2

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 (119) hide show
  1. package/.eslintignore +2 -0
  2. package/.flowconfig +1 -1
  3. package/CHANGELOG.json +195 -19
  4. package/CHANGELOG.md +89 -13
  5. package/Libraries/ActionSheetIOS/ActionSheetIOS.js +14 -1
  6. package/Libraries/ActionSheetIOS/NativeActionSheetManager.js +2 -0
  7. package/Libraries/Animated/AnimatedEvent.js +23 -4
  8. package/Libraries/Animated/NativeAnimatedHelper.js +2 -2
  9. package/Libraries/Animated/components/AnimatedImage.js +3 -3
  10. package/Libraries/Animated/components/AnimatedScrollView.js +3 -3
  11. package/Libraries/Animated/components/AnimatedText.js +3 -3
  12. package/Libraries/Animated/components/AnimatedView.js +1 -3
  13. package/Libraries/Animated/createAnimatedComponent.js +3 -34
  14. package/Libraries/Components/Button/ButtonWin32.js +2 -2
  15. package/Libraries/Components/Button/ButtonWin32.js.map +1 -1
  16. package/Libraries/Components/Button.js +3 -0
  17. package/Libraries/Components/DatePicker/DatePickerIOS.ios.js +3 -6
  18. package/Libraries/Components/DrawerAndroid/DrawerLayoutAndroid.android.js +4 -7
  19. package/Libraries/Components/EnterString.win32.js +3 -3
  20. package/Libraries/Components/EnterString.win32.js.map +1 -1
  21. package/Libraries/Components/ScrollView/AndroidHorizontalScrollViewNativeComponent.js +1 -0
  22. package/Libraries/Components/ScrollView/ScrollView.js +17 -16
  23. package/Libraries/Components/ScrollView/ScrollViewStickyHeader.js +268 -252
  24. package/Libraries/Components/Text/Tests/TextWin32Test.d.ts +0 -1
  25. package/Libraries/Components/Text/TextWin32.Props.d.ts +2 -2
  26. package/Libraries/Components/Text/TextWin32.Props.js.map +1 -1
  27. package/Libraries/Components/Text/TextWin32.js +1 -1
  28. package/Libraries/Components/Text/TextWin32.js.map +1 -1
  29. package/Libraries/Components/TextInput/Tests/TextInputTest.d.ts +0 -1
  30. package/Libraries/Components/TextInput/TextInput.win32.js +6 -6
  31. package/Libraries/Components/TextInput/TextInput.win32.js.map +1 -1
  32. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.d.ts +0 -1
  33. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js +1 -1
  34. package/Libraries/Components/Touchable/Tests/TouchableWin32Test.js.map +1 -1
  35. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js +2 -2
  36. package/Libraries/Components/Touchable/TouchableNativeFeedback.win32.js.map +1 -1
  37. package/Libraries/Components/Touchable/TouchableWin32.js +2 -2
  38. package/Libraries/Components/Touchable/TouchableWin32.js.map +1 -1
  39. package/Libraries/Components/View/ReactNativeViewViewConfig.win32.js +1 -0
  40. package/Libraries/Components/View/Tests/ViewWin32Test.d.ts +0 -1
  41. package/Libraries/Components/View/Tests/ViewWin32Test.js +44 -2
  42. package/Libraries/Components/View/Tests/ViewWin32Test.js.map +1 -1
  43. package/Libraries/Components/View/View.js +1 -1
  44. package/Libraries/Components/View/View.win32.js +1 -1
  45. package/Libraries/Components/View/ViewAccessibility.js +1 -1
  46. package/Libraries/Components/View/ViewWin32.Props.d.ts +4 -6
  47. package/Libraries/Components/View/ViewWin32.Props.js.map +1 -1
  48. package/Libraries/Components/View/ViewWin32.js +5 -5
  49. package/Libraries/Components/View/ViewWin32.js.map +1 -1
  50. package/Libraries/Core/ExceptionsManager.js +45 -80
  51. package/Libraries/Core/ExtendedError.js +0 -1
  52. package/Libraries/Core/ReactNativeVersion.js +2 -2
  53. package/Libraries/Core/setUpBatchedBridge.js +1 -1
  54. package/Libraries/Core/setUpGlobals.js +2 -4
  55. package/Libraries/Core/setUpTimers.js +2 -2
  56. package/Libraries/Image/Image.ios.js +6 -0
  57. package/Libraries/Image/Image.win32.js +6 -0
  58. package/Libraries/Image/ImageBackground.js +10 -8
  59. package/Libraries/Image/ImageProps.js +28 -0
  60. package/Libraries/Image/Tests/ImageWin32Test.d.ts +0 -1
  61. package/Libraries/LogBox/Data/LogBoxData.js +18 -19
  62. package/Libraries/LogBox/UI/LogBoxImages/alert-triangle.png +0 -0
  63. package/Libraries/LogBox/UI/LogBoxImages/chevron-left.png +0 -0
  64. package/Libraries/LogBox/UI/LogBoxImages/chevron-right.png +0 -0
  65. package/Libraries/LogBox/UI/LogBoxImages/close.png +0 -0
  66. package/Libraries/LogBox/UI/LogBoxImages/loader.png +0 -0
  67. package/Libraries/NewAppScreen/components/logo.png +0 -0
  68. package/Libraries/PermissionsAndroid/NativePermissionsAndroid.js +2 -1
  69. package/Libraries/PermissionsAndroid/PermissionsAndroid.js +2 -0
  70. package/Libraries/PersonaCoin/PersonaCoin.js +3 -2
  71. package/Libraries/PersonaCoin/PersonaCoin.js.map +1 -1
  72. package/Libraries/Pressability/Pressability.js +13 -13
  73. package/Libraries/Pressability/PressabilityPerformanceEventEmitter.js +1 -1
  74. package/Libraries/ReactNative/AppRegistry.js +4 -2
  75. package/Libraries/Renderer/implementations/ReactFabric-dev.fb.js +1569 -875
  76. package/Libraries/Renderer/implementations/ReactFabric-prod.fb.js +529 -319
  77. package/Libraries/Renderer/implementations/ReactFabric-profiling.fb.js +570 -362
  78. package/Libraries/Renderer/implementations/ReactNativeRenderer-dev.fb.js +1592 -891
  79. package/Libraries/Renderer/implementations/ReactNativeRenderer-prod.fb.js +521 -311
  80. package/Libraries/Renderer/implementations/ReactNativeRenderer-profiling.fb.js +562 -354
  81. package/Libraries/Share/Share.js +1 -1
  82. package/Libraries/StyleSheet/normalizeColor.js +2 -2
  83. package/Libraries/Text/TextProps.js +1 -7
  84. package/Libraries/TurboModule/TurboModuleRegistry.js +1 -1
  85. package/Libraries/Utilities/HMRClient.js +1 -1
  86. package/flow/global.js +45 -0
  87. package/index.js +15 -10
  88. package/index.win32.js +15 -10
  89. package/jest/mockModal.js +31 -0
  90. package/jest/setup.js +5 -3
  91. package/overrides.json +7 -13
  92. package/package.json +20 -18
  93. package/rntypes/BatchedBridge.d.ts +23 -0
  94. package/rntypes/Devtools.d.ts +20 -0
  95. package/rntypes/LaunchScreen.d.ts +9 -0
  96. package/rntypes/globals.d.ts +496 -0
  97. package/rntypes/index.d.ts +9966 -0
  98. package/rntypes/legacy-properties.d.ts +266 -0
  99. package/src/Libraries/Components/Text/TextWin32.Props.ts +2 -2
  100. package/src/Libraries/Components/View/Tests/ViewWin32Test.tsx +64 -0
  101. package/src/Libraries/Components/View/ViewWin32.Props.ts +7 -12
  102. package/src/rntypes/BatchedBridge.d.ts +23 -0
  103. package/src/rntypes/Devtools.d.ts +20 -0
  104. package/src/rntypes/LaunchScreen.d.ts +9 -0
  105. package/src/rntypes/globals.d.ts +496 -0
  106. package/src/rntypes/index.d.ts +9966 -0
  107. package/src/rntypes/legacy-properties.d.ts +266 -0
  108. package/src/typings-index.ts +11 -4
  109. package/typings-index.d.ts +3 -1
  110. package/typings-index.js +7 -5
  111. package/typings-index.js.map +1 -1
  112. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.android.js +0 -87
  113. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.ios.js +0 -30
  114. package/Libraries/Components/DatePickerAndroid/DatePickerAndroid.win32.js +0 -30
  115. package/Libraries/Components/DatePickerAndroid/DatePickerAndroidTypes.js +0 -30
  116. package/Libraries/Components/StaticContainer.react.js +0 -51
  117. package/Libraries/Components/Touchable/ensurePositiveDelayProps.js +0 -25
  118. package/Libraries/Interaction/InteractionMixin.js +0 -54
  119. package/Libraries/ReactNative/queryLayoutByID.js +0 -58
package/.eslintignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /Libraries
8
8
  /packages
9
9
  /ReactCopies
10
+ /rntypes
11
+ /src/rntypes
package/.flowconfig CHANGED
@@ -113,4 +113,4 @@ untyped-import
113
113
  untyped-type-import
114
114
 
115
115
  [version]
116
- ^0.158.0
116
+ ^0.162.0
package/CHANGELOG.json CHANGED
@@ -2,60 +2,236 @@
2
2
  "name": "@office-iss/react-native-win32",
3
3
  "entries": [
4
4
  {
5
- "date": "Mon, 11 Oct 2021 15:06:48 GMT",
6
- "tag": "@office-iss/react-native-win32_v0.66.0",
7
- "version": "0.66.0",
5
+ "date": "Mon, 15 Nov 2021 16:09:34 GMT",
6
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.2",
7
+ "version": "0.67.0-preview.2",
8
+ "comments": {
9
+ "prerelease": [
10
+ {
11
+ "author": "ruaraki@microsoft.com",
12
+ "package": "@office-iss/react-native-win32",
13
+ "commit": "6a7a95e90c7f7a3a86efac63b24092232380ba1b",
14
+ "comment": "Add enableFocusRing prop for View and test"
15
+ }
16
+ ]
17
+ }
18
+ },
19
+ {
20
+ "date": "Mon, 25 Oct 2021 15:07:48 GMT",
21
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.1",
22
+ "version": "0.67.0-preview.1",
23
+ "comments": {
24
+ "prerelease": [
25
+ {
26
+ "author": "ngerlem@microsoft.com",
27
+ "package": "@office-iss/react-native-win32",
28
+ "commit": "not available",
29
+ "comment": "Promote 0.67 to preview"
30
+ },
31
+ {
32
+ "author": "beachball",
33
+ "package": "@office-iss/react-native-win32",
34
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0-preview.1",
35
+ "commit": "666510e980ced292bffd23a44982e8a800f91444"
36
+ }
37
+ ]
38
+ }
39
+ },
40
+ {
41
+ "date": "Mon, 25 Oct 2021 15:07:19 GMT",
42
+ "tag": "@office-iss/react-native-win32_v0.67.0-preview.1",
43
+ "version": "0.67.0-preview.1",
44
+ "comments": {
45
+ "prerelease": [
46
+ {
47
+ "author": "ngerlem@microsoft.com",
48
+ "package": "@office-iss/react-native-win32",
49
+ "commit": "5ca0feb9bccbf395aa8297f97a1a8832971d4f2e",
50
+ "comment": "Promote 0.67 to preview"
51
+ },
52
+ {
53
+ "author": "beachball",
54
+ "package": "@office-iss/react-native-win32",
55
+ "comment": "Bump @react-native-windows/virtualized-list to v0.67.0-preview.1",
56
+ "commit": "be5b1c696dc4bb50281f444713575830d3bf72e3"
57
+ }
58
+ ]
59
+ }
60
+ },
61
+ {
62
+ "date": "Thu, 21 Oct 2021 05:08:01 GMT",
63
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.117",
64
+ "version": "0.0.0-canary.117",
65
+ "comments": {
66
+ "prerelease": [
67
+ {
68
+ "author": "30809111+acoates-ms@users.noreply.github.com",
69
+ "package": "@office-iss/react-native-win32",
70
+ "comment": "Update to typescript 4",
71
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
72
+ },
73
+ {
74
+ "author": "beachball",
75
+ "package": "@office-iss/react-native-win32",
76
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.14",
77
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
78
+ },
79
+ {
80
+ "author": "beachball",
81
+ "package": "@office-iss/react-native-win32",
82
+ "comment": "Bump react-native-platform-override to v1.5.1",
83
+ "commit": "8a0ffecdcf5e68d950f20380fdf62295edb352b6"
84
+ }
85
+ ]
86
+ }
87
+ },
88
+ {
89
+ "date": "Sat, 09 Oct 2021 05:06:48 GMT",
90
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.116",
91
+ "version": "0.0.0-canary.116",
92
+ "comments": {
93
+ "prerelease": [
94
+ {
95
+ "author": "30809111+acoates-ms@users.noreply.github.com",
96
+ "package": "@office-iss/react-native-win32",
97
+ "comment": "Export complete type information",
98
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
99
+ },
100
+ {
101
+ "author": "ngerlem@microsoft.com",
102
+ "package": "@office-iss/react-native-win32",
103
+ "comment": "Integrate 10-8-21 Nightly Build",
104
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
105
+ },
106
+ {
107
+ "author": "beachball",
108
+ "package": "@office-iss/react-native-win32",
109
+ "comment": "Bump @react-native-windows/virtualized-list to v0.0.0-canary.13",
110
+ "commit": "db9fd0f1192d6340c5e766ac2630fc182c99de4f"
111
+ }
112
+ ]
113
+ }
114
+ },
115
+ {
116
+ "date": "Wed, 06 Oct 2021 05:07:05 GMT",
117
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.115",
118
+ "version": "0.0.0-canary.115",
8
119
  "comments": {
9
120
  "patch": [
10
121
  {
11
- "comment": "Promote 0.66 to latest",
122
+ "comment": "Bump react-native-platform-override to v1.5.0",
12
123
  "author": "ngerlem@microsoft.com",
13
- "commit": "5d1e5ae98139204e02f0ac5d8c06ae7ee1157395",
124
+ "commit": "7a0c68516b825131c798978f1dfc0088f7115614",
125
+ "package": "@office-iss/react-native-win32"
126
+ }
127
+ ]
128
+ }
129
+ },
130
+ {
131
+ "date": "Tue, 28 Sep 2021 05:07:03 GMT",
132
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.114",
133
+ "version": "0.0.0-canary.114",
134
+ "comments": {
135
+ "prerelease": [
136
+ {
137
+ "comment": "Integrate 9/23",
138
+ "author": "34109996+chiaramooney@users.noreply.github.com",
139
+ "commit": "d4970fdd583866c3ac7af6a0cf38040cf3b22d93",
140
+ "package": "@office-iss/react-native-win32"
141
+ }
142
+ ]
143
+ }
144
+ },
145
+ {
146
+ "date": "Fri, 24 Sep 2021 05:06:42 GMT",
147
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.113",
148
+ "version": "0.0.0-canary.113",
149
+ "comments": {
150
+ "prerelease": [
151
+ {
152
+ "comment": "Integrate RN nightly 9/16.",
153
+ "author": "igklemen@microsoft.com",
154
+ "commit": "8b63ada9ba1d55bfd161388fc18c2b5c6445b508",
14
155
  "package": "@office-iss/react-native-win32"
15
156
  }
16
157
  ]
17
158
  }
18
159
  },
19
160
  {
20
- "date": "Mon, 04 Oct 2021 15:07:37 GMT",
21
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.3",
22
- "version": "0.66.0-preview.3",
161
+ "date": "Tue, 21 Sep 2021 05:08:39 GMT",
162
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.112",
163
+ "version": "0.0.0-canary.112",
164
+ "comments": {
165
+ "prerelease": [
166
+ {
167
+ "comment": "Integrate RN nightly build 9/9.",
168
+ "author": "igklemen@microsoft.com",
169
+ "commit": "08eb19f42f4f74bd82f33db2e27ba2d33b2ddd1b",
170
+ "package": "@office-iss/react-native-win32"
171
+ }
172
+ ]
173
+ }
174
+ },
175
+ {
176
+ "date": "Fri, 17 Sep 2021 05:06:53 GMT",
177
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.111",
178
+ "version": "0.0.0-canary.111",
23
179
  "comments": {
24
180
  "prerelease": [
25
181
  {
26
182
  "comment": "Fix exception in View when props are undefined",
27
183
  "author": "30809111+acoates-ms@users.noreply.github.com",
28
- "commit": "a20892ade44390cdb10f25c31a2f35ce61328b97",
184
+ "commit": "77ebdd47cd2feead7885933ac351a045041bee2e",
29
185
  "package": "@office-iss/react-native-win32"
30
186
  }
31
187
  ]
32
188
  }
33
189
  },
34
190
  {
35
- "date": "Mon, 20 Sep 2021 15:07:01 GMT",
36
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.2",
37
- "version": "0.66.0-preview.2",
191
+ "date": "Thu, 09 Sep 2021 05:07:46 GMT",
192
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.110",
193
+ "version": "0.0.0-canary.110",
38
194
  "comments": {
39
195
  "prerelease": [
40
196
  {
41
- "comment": "Adding ItemType prop on ViewWIn32",
197
+ "comment": "Adding accessibilityItemType property to ViewWin32",
42
198
  "author": "safreibe@microsoft.com",
43
- "commit": "e5689bf41dd6322456a917391aee3c3940e19070",
199
+ "commit": "465dae11d372626fcb90d966e9e97f2d3d531f43",
44
200
  "package": "@office-iss/react-native-win32"
45
201
  }
46
202
  ]
47
203
  }
48
204
  },
49
205
  {
50
- "date": "Fri, 03 Sep 2021 18:48:19 GMT",
51
- "tag": "@office-iss/react-native-win32_v0.66.0-preview.1",
52
- "version": "0.66.0-preview.1",
206
+ "date": "Wed, 08 Sep 2021 05:08:53 GMT",
207
+ "tag": "@office-iss/react-native-win32_v0.0.0-canary.109",
208
+ "version": "0.0.0-canary.109",
53
209
  "comments": {
54
210
  "prerelease": [
55
211
  {
56
- "comment": "Promote 0.66 to preview",
212
+ "comment": "Set consistent node requirements on our packages",
213
+ "author": "ngerlem@microsoft.com",
214
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
215
+ "package": "@office-iss/react-native-win32"
216
+ },
217
+ {
218
+ "comment": "Integrate 9/2",
219
+ "author": "34109996+chiaramooney@users.noreply.github.com",
220
+ "commit": "8b91737bde65fc50b454be74f64bc50b5d2cfda2",
221
+ "package": "@office-iss/react-native-win32"
222
+ }
223
+ ],
224
+ "patch": [
225
+ {
226
+ "comment": "Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.2",
227
+ "author": "ngerlem@microsoft.com",
228
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
229
+ "package": "@office-iss/react-native-win32"
230
+ },
231
+ {
232
+ "comment": "Bump @rnw-scripts/eslint-config to v1.1.8",
57
233
  "author": "ngerlem@microsoft.com",
58
- "commit": "cf1dcfbe108028869e326bb2bdab370949f7dac8",
234
+ "commit": "2974ea0ab58b546264b8d9a4a7c12ceeb0a02851",
59
235
  "package": "@office-iss/react-native-win32"
60
236
  }
61
237
  ]
package/CHANGELOG.md CHANGED
@@ -1,40 +1,116 @@
1
1
  # Change Log - @office-iss/react-native-win32
2
2
 
3
- This log was last generated on Mon, 11 Oct 2021 15:06:48 GMT and should not be manually modified.
3
+ This log was last generated on Mon, 15 Nov 2021 16:09:34 GMT and should not be manually modified.
4
4
 
5
5
  <!-- Start content -->
6
6
 
7
- ## 0.66.0
7
+ ## 0.67.0-preview.2
8
8
 
9
- Mon, 11 Oct 2021 15:06:48 GMT
9
+ Mon, 15 Nov 2021 16:09:34 GMT
10
10
 
11
- ### Patches
11
+ ### Changes
12
12
 
13
- - Promote 0.66 to latest (ngerlem@microsoft.com)
13
+ - Add enableFocusRing prop for View and test (ruaraki@microsoft.com)
14
14
 
15
- ## 0.66.0-preview.3
15
+ ## 0.67.0-preview.1
16
16
 
17
- Mon, 04 Oct 2021 15:07:37 GMT
17
+ Mon, 25 Oct 2021 15:07:48 GMT
18
+
19
+ ### Changes
20
+
21
+ - Promote 0.67 to preview (ngerlem@microsoft.com)
22
+ - Bump @react-native-windows/virtualized-list to v0.67.0-preview.1
23
+
24
+ ## 0.67.0-preview.1
25
+
26
+ Mon, 25 Oct 2021 15:07:19 GMT
27
+
28
+ ### Changes
29
+
30
+ - Promote 0.67 to preview (ngerlem@microsoft.com)
31
+ - Bump @react-native-windows/virtualized-list to v0.67.0-preview.1
32
+
33
+ ## 0.0.0-canary.117
34
+
35
+ Thu, 21 Oct 2021 05:08:01 GMT
36
+
37
+ ### Changes
38
+
39
+ - Update to typescript 4 (30809111+acoates-ms@users.noreply.github.com)
40
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.14
41
+ - Bump react-native-platform-override to v1.5.1
42
+
43
+ ## 0.0.0-canary.116
44
+
45
+ Sat, 09 Oct 2021 05:06:48 GMT
46
+
47
+ ### Changes
48
+
49
+ - Export complete type information (30809111+acoates-ms@users.noreply.github.com)
50
+ - Integrate 10-8-21 Nightly Build (ngerlem@microsoft.com)
51
+ - Bump @react-native-windows/virtualized-list to v0.0.0-canary.13
52
+
53
+ ## 0.0.0-canary.115
54
+
55
+ Wed, 06 Oct 2021 05:07:05 GMT
56
+
57
+ ### Patches
58
+
59
+ - Bump react-native-platform-override to v1.5.0 (ngerlem@microsoft.com)
60
+
61
+ ## 0.0.0-canary.114
62
+
63
+ Tue, 28 Sep 2021 05:07:03 GMT
64
+
65
+ ### Changes
66
+
67
+ - Integrate 9/23 (34109996+chiaramooney@users.noreply.github.com)
68
+
69
+ ## 0.0.0-canary.113
70
+
71
+ Fri, 24 Sep 2021 05:06:42 GMT
72
+
73
+ ### Changes
74
+
75
+ - Integrate RN nightly 9/16. (igklemen@microsoft.com)
76
+
77
+ ## 0.0.0-canary.112
78
+
79
+ Tue, 21 Sep 2021 05:08:39 GMT
80
+
81
+ ### Changes
82
+
83
+ - Integrate RN nightly build 9/9. (igklemen@microsoft.com)
84
+
85
+ ## 0.0.0-canary.111
86
+
87
+ Fri, 17 Sep 2021 05:06:53 GMT
18
88
 
19
89
  ### Changes
20
90
 
21
91
  - Fix exception in View when props are undefined (30809111+acoates-ms@users.noreply.github.com)
22
92
 
23
- ## 0.66.0-preview.2
93
+ ## 0.0.0-canary.110
24
94
 
25
- Mon, 20 Sep 2021 15:07:01 GMT
95
+ Thu, 09 Sep 2021 05:07:46 GMT
26
96
 
27
97
  ### Changes
28
98
 
29
- - Adding ItemType prop on ViewWIn32 (safreibe@microsoft.com)
99
+ - Adding accessibilityItemType property to ViewWin32 (safreibe@microsoft.com)
100
+
101
+ ## 0.0.0-canary.109
30
102
 
31
- ## 0.66.0-preview.1
103
+ Wed, 08 Sep 2021 05:08:53 GMT
104
+
105
+ ### Patches
32
106
 
33
- Fri, 03 Sep 2021 18:48:19 GMT
107
+ - Bump @rnw-scripts/jest-out-of-tree-snapshot-resolver to v1.0.2 (ngerlem@microsoft.com)
108
+ - Bump @rnw-scripts/eslint-config to v1.1.8 (ngerlem@microsoft.com)
34
109
 
35
110
  ### Changes
36
111
 
37
- - Promote 0.66 to preview (ngerlem@microsoft.com)
112
+ - Set consistent node requirements on our packages (ngerlem@microsoft.com)
113
+ - Integrate 9/2 (34109996+chiaramooney@users.noreply.github.com)
38
114
 
39
115
  ## 0.0.0-canary.108
40
116
 
@@ -47,6 +47,7 @@ const ActionSheetIOS = {
47
47
  +cancelButtonIndex?: ?number,
48
48
  +anchor?: ?number,
49
49
  +tintColor?: ColorValue | ProcessedColorValue,
50
+ +cancelButtonTintColor?: ColorValue | ProcessedColorValue,
50
51
  +userInterfaceStyle?: string,
51
52
  +disabledButtonIndices?: Array<number>,
52
53
  |},
@@ -59,7 +60,12 @@ const ActionSheetIOS = {
59
60
  invariant(typeof callback === 'function', 'Must provide a valid callback');
60
61
  invariant(RCTActionSheetManager, "ActionSheetManager doesn't exist");
61
62
 
62
- const {tintColor, destructiveButtonIndex, ...remainingOptions} = options;
63
+ const {
64
+ tintColor,
65
+ cancelButtonTintColor,
66
+ destructiveButtonIndex,
67
+ ...remainingOptions
68
+ } = options;
63
69
  let destructiveButtonIndices = null;
64
70
 
65
71
  if (Array.isArray(destructiveButtonIndex)) {
@@ -69,14 +75,21 @@ const ActionSheetIOS = {
69
75
  }
70
76
 
71
77
  const processedTintColor = processColor(tintColor);
78
+ const processedCancelButtonTintColor = processColor(cancelButtonTintColor);
72
79
  invariant(
73
80
  processedTintColor == null || typeof processedTintColor === 'number',
74
81
  'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions tintColor',
75
82
  );
83
+ invariant(
84
+ processedCancelButtonTintColor == null ||
85
+ typeof processedCancelButtonTintColor === 'number',
86
+ 'Unexpected color given for ActionSheetIOS.showActionSheetWithOptions cancelButtonTintColor',
87
+ );
76
88
  RCTActionSheetManager.showActionSheetWithOptions(
77
89
  {
78
90
  ...remainingOptions,
79
91
  tintColor: processedTintColor,
92
+ cancelButtonTintColor: processedCancelButtonTintColor,
80
93
  destructiveButtonIndices,
81
94
  },
82
95
  callback,
@@ -22,6 +22,7 @@ export interface Spec extends TurboModule {
22
22
  +cancelButtonIndex?: ?number,
23
23
  +anchor?: ?number,
24
24
  +tintColor?: ?number,
25
+ +cancelButtonTintColor?: ?number,
25
26
  +userInterfaceStyle?: ?string,
26
27
  +disabledButtonIndices?: Array<number>,
27
28
  |},
@@ -34,6 +35,7 @@ export interface Spec extends TurboModule {
34
35
  +subject?: ?string,
35
36
  +anchor?: ?number,
36
37
  +tintColor?: ?number,
38
+ +cancelButtonTintColor?: ?number,
37
39
  +excludedActivityTypes?: ?Array<string>,
38
40
  +userInterfaceStyle?: ?string,
39
41
  |},
@@ -11,6 +11,7 @@
11
11
  'use strict';
12
12
 
13
13
  const AnimatedValue = require('./nodes/AnimatedValue');
14
+ const AnimatedValueXY = require('./nodes/AnimatedValueXY');
14
15
  const NativeAnimatedHelper = require('./NativeAnimatedHelper');
15
16
  const ReactNative = require('../Renderer/shims/ReactNative');
16
17
 
@@ -18,7 +19,10 @@ const invariant = require('invariant');
18
19
 
19
20
  const {shouldUseNativeDriver} = require('./NativeAnimatedHelper');
20
21
 
21
- export type Mapping = {[key: string]: Mapping, ...} | AnimatedValue;
22
+ export type Mapping =
23
+ | {[key: string]: Mapping, ...}
24
+ | AnimatedValue
25
+ | AnimatedValueXY;
22
26
  export type EventConfig = {
23
27
  listener?: ?Function,
24
28
  useNativeDriver: boolean,
@@ -41,6 +45,9 @@ function attachNativeEvent(
41
45
  nativeEventPath: path,
42
46
  animatedValueTag: value.__getNativeTag(),
43
47
  });
48
+ } else if (value instanceof AnimatedValueXY) {
49
+ traverse(value.x, path.concat('x'));
50
+ traverse(value.y, path.concat('y'));
44
51
  } else if (typeof value === 'object') {
45
52
  for (const key in value) {
46
53
  traverse(value[key], path.concat(key));
@@ -95,6 +102,13 @@ function validateMapping(argMapping, args) {
95
102
  );
96
103
  return;
97
104
  }
105
+ if (recMapping instanceof AnimatedValueXY) {
106
+ invariant(
107
+ typeof recEvt.x === 'number' && typeof recEvt.y === 'number',
108
+ 'Bad mapping of event key ' + key + ', should be XY but got ' + recEvt,
109
+ );
110
+ return;
111
+ }
98
112
  if (typeof recEvt === 'number') {
99
113
  invariant(
100
114
  recMapping instanceof AnimatedValue,
@@ -204,22 +218,27 @@ class AnimatedEvent {
204
218
  validatedMapping = true;
205
219
  }
206
220
 
207
- const traverse = (recMapping, recEvt, key) => {
221
+ const traverse = (recMapping, recEvt) => {
208
222
  if (recMapping instanceof AnimatedValue) {
209
223
  if (typeof recEvt === 'number') {
210
224
  recMapping.setValue(recEvt);
211
225
  }
226
+ } else if (recMapping instanceof AnimatedValueXY) {
227
+ if (typeof recEvt === 'object') {
228
+ traverse(recMapping.x, recEvt.x);
229
+ traverse(recMapping.y, recEvt.y);
230
+ }
212
231
  } else if (typeof recMapping === 'object') {
213
232
  for (const mappingKey in recMapping) {
214
233
  /* $FlowFixMe[prop-missing] (>=0.120.0) This comment suppresses an
215
234
  * error found when Flow v0.120 was deployed. To see the error,
216
235
  * delete this comment and run Flow. */
217
- traverse(recMapping[mappingKey], recEvt[mappingKey], mappingKey);
236
+ traverse(recMapping[mappingKey], recEvt[mappingKey]);
218
237
  }
219
238
  }
220
239
  };
221
240
  this._argMapping.forEach((mapping, idx) => {
222
- traverse(mapping, args[idx], 'arg' + idx);
241
+ traverse(mapping, args[idx]);
223
242
  });
224
243
 
225
244
  this._callListeners(...args);
@@ -24,7 +24,7 @@ import invariant from 'invariant';
24
24
 
25
25
  // TODO T69437152 @petetheheat - Delete this fork when Fabric ships to 100%.
26
26
  const NativeAnimatedModule =
27
- Platform.OS === 'ios' && global.RN$Bridgeless
27
+ Platform.OS === 'ios' && global.RN$Bridgeless === true
28
28
  ? NativeAnimatedTurboModule
29
29
  : NativeAnimatedNonTurboModule;
30
30
 
@@ -355,7 +355,7 @@ function shouldUseNativeDriver(
355
355
  'animated module is missing. Falling back to JS-based animation. To ' +
356
356
  'resolve this, add `RCTAnimation` module to this app, or remove ' +
357
357
  '`useNativeDriver`. ' +
358
- 'Make sure to run `pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
358
+ 'Make sure to run `bundle exec pod install` first. Read more about autolinking: https://github.com/react-native-community/cli/blob/master/docs/autolinking.md',
359
359
  );
360
360
  _warnedMissingNativeAnimated = true;
361
361
  }
@@ -15,9 +15,9 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent((Image: $FlowFixMe), {
19
- collapsable: false,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(
19
+ (Image: $FlowFixMe),
20
+ ): AnimatedComponentType<
21
21
  React.ElementConfig<typeof Image>,
22
22
  React.ElementRef<typeof Image>,
23
23
  >);
@@ -22,9 +22,9 @@ const ScrollViewWithEventThrottle = React.forwardRef((props, ref) => (
22
22
  <ScrollView scrollEventThrottle={0.0001} {...props} ref={ref} />
23
23
  ));
24
24
 
25
- module.exports = (createAnimatedComponent(ScrollViewWithEventThrottle, {
26
- collapsable: false,
27
- }): AnimatedComponentType<
25
+ module.exports = (createAnimatedComponent(
26
+ ScrollViewWithEventThrottle,
27
+ ): AnimatedComponentType<
28
28
  React.ElementConfig<typeof ScrollView>,
29
29
  React.ElementRef<typeof ScrollView>,
30
30
  >);
@@ -15,9 +15,9 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent((Text: $FlowFixMe), {
19
- collapsable: false,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(
19
+ (Text: $FlowFixMe),
20
+ ): AnimatedComponentType<
21
21
  React.ElementConfig<typeof Text>,
22
22
  React.ElementRef<typeof Text>,
23
23
  >);
@@ -15,9 +15,7 @@ const createAnimatedComponent = require('../createAnimatedComponent');
15
15
 
16
16
  import type {AnimatedComponentType} from '../createAnimatedComponent';
17
17
 
18
- module.exports = (createAnimatedComponent(View, {
19
- collapsable: true,
20
- }): AnimatedComponentType<
18
+ module.exports = (createAnimatedComponent(View): AnimatedComponentType<
21
19
  React.ElementConfig<typeof View>,
22
20
  React.ElementRef<typeof View>,
23
21
  >);
@@ -39,13 +39,8 @@ export type AnimatedComponentType<
39
39
  Instance,
40
40
  >;
41
41
 
42
- type AnimatedComponentOptions = {
43
- collapsable?: boolean,
44
- };
45
-
46
42
  function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
47
43
  Component: React.AbstractComponent<Props, Instance>,
48
- options?: AnimatedComponentOptions,
49
44
  ): AnimatedComponentType<Props, Instance> {
50
45
  invariant(
51
46
  typeof Component !== 'function' ||
@@ -210,39 +205,13 @@ function createAnimatedComponent<Props: {+[string]: mixed, ...}, Instance>(
210
205
  this.props.passthroughAnimatedPropExplicitValues || {};
211
206
  const mergedStyle = {...style, ...passthruStyle};
212
207
 
213
- // On Fabric, we always want to ensure the container Animated View is *not*
214
- // flattened.
215
- // Because we do not get a host component ref immediately and thus cannot
216
- // do a proper Fabric vs non-Fabric detection immediately, we default to assuming
217
- // that Fabric *is* enabled until we know otherwise.
218
- // Thus, in Fabric, this view will never be flattened. In non-Fabric, the view will
219
- // not be flattened during the initial render but may be flattened in the second render
220
- // and onwards.
221
- const forceNativeIdFabric =
222
- (this._component == null &&
223
- (options?.collapsable === false || props.collapsable !== true)) ||
224
- this._isFabric();
225
-
226
- const forceNativeId =
227
- props.collapsable ??
228
- (this._propsAnimated.__isNative ||
229
- forceNativeIdFabric ||
230
- options?.collapsable === false);
231
- // The native driver updates views directly through the UI thread so we
232
- // have to make sure the view doesn't get optimized away because it cannot
233
- // go through the NativeViewHierarchyManager since it operates on the shadow
234
- // thread. TODO: T68258846
235
- const collapsableProps = forceNativeId
236
- ? {
237
- nativeID: props.nativeID ?? 'animatedComponent',
238
- collapsable: false,
239
- }
240
- : {};
208
+ // Force `collapsable` to be false so that native view is not flattened.
209
+ // Flattened views cannot be accurately referenced by a native driver.
241
210
  return (
242
211
  <Component
243
212
  {...props}
244
213
  {...passthruProps}
245
- {...collapsableProps}
214
+ collapsable={false}
246
215
  style={mergedStyle}
247
216
  ref={this._setComponentRef}
248
217
  />