Skip to content

Commit 3c8d1e6

Browse files
panagosg7meta-codesync[bot]
authored andcommitted
Deploy 0.298.0 to xplat
Summary: [changelog](https://github.com/facebook/flow/blob/main/Changelog.md) Changelog: [Internal] Differential Revision: D91280462
1 parent 355b1cb commit 3c8d1e6

6 files changed

Lines changed: 18 additions & 6 deletions

File tree

.flowconfig

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,4 +98,4 @@ untyped-import
9898
untyped-type-import
9999

100100
[version]
101-
^0.297.0
101+
^0.298.0

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@
8585
"eslint-plugin-relay": "^1.8.3",
8686
"fb-dotslash": "0.5.8",
8787
"flow-api-translator": "0.33.3",
88-
"flow-bin": "^0.297.0",
88+
"flow-bin": "^0.298.0",
8989
"hermes-eslint": "0.33.3",
9090
"hermes-transform": "0.33.3",
9191
"ini": "^5.0.0",

packages/react-native/Libraries/Utilities/__tests__/useColorScheme-test.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ import useColorScheme from '../useColorScheme';
1313
describe('useColorScheme', () => {
1414
it('should return a mocked light theme by default', () => {
1515
expect(jest.isMockFunction(useColorScheme)).toBe(true);
16+
// $FlowFixMe[react-rule-hook]
1617
expect(useColorScheme()).toBe('light');
1718
});
1819

@@ -26,6 +27,7 @@ describe('useColorScheme', () => {
2627
});
2728

2829
expect(() => {
30+
// $FlowFixMe[react-rule-hook]
2931
useColorSchemeActual();
3032
}).toThrow();
3133

packages/react-native/Libraries/Utilities/__tests__/useMergeRefs-test.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,10 +55,12 @@ test('accepts a ref callback', () => {
5555
ledger.push({ref: id(current)});
5656
};
5757

58+
// $FlowFixMe[react-rule-hook]
5859
screen.render(() => <View id="foo" key="foo" ref={useMergeRefs(ref)} />);
5960

6061
expect(ledger).toEqual([{ref: 'foo'}]);
6162

63+
// $FlowFixMe[react-rule-hook]
6264
screen.render(() => <View id="bar" key="bar" ref={useMergeRefs(ref)} />);
6365

6466
expect(ledger).toEqual([{ref: 'foo'}, {ref: null}, {ref: 'bar'}]);
@@ -85,10 +87,12 @@ test('accepts a ref callback that returns a cleanup function', () => {
8587
};
8688
};
8789

90+
// $FlowFixMe[react-rule-hook]
8891
screen.render(() => <View id="foo" key="foo" ref={useMergeRefs(ref)} />);
8992

9093
expect(ledger).toEqual([{ref: 'foo'}]);
9194

95+
// $FlowFixMe[react-rule-hook]
9296
screen.render(() => <View id="bar" key="bar" ref={useMergeRefs(ref)} />);
9397

9498
expect(ledger).toEqual([{ref: 'foo'}, {ref: null}, {ref: 'bar'}]);
@@ -114,10 +118,12 @@ test('accepts a ref object', () => {
114118
},
115119
};
116120

121+
// $FlowFixMe[react-rule-hook]
117122
screen.render(() => <View id="foo" key="foo" ref={useMergeRefs(ref)} />);
118123

119124
expect(ledger).toEqual([{ref: 'foo'}]);
120125

126+
// $FlowFixMe[react-rule-hook]
121127
screen.render(() => <View id="bar" key="bar" ref={useMergeRefs(ref)} />);
122128

123129
expect(ledger).toEqual([{ref: 'foo'}, {ref: null}, {ref: 'bar'}]);
@@ -156,6 +162,7 @@ test('invokes refs in order', () => {
156162
};
157163

158164
screen.render(() => (
165+
// $FlowFixMe[react-rule-hook]
159166
<View id="foo" key="foo" ref={useMergeRefs(refA, refB, refC, refD)} />
160167
));
161168

@@ -194,6 +201,7 @@ test('invokes all refs if any ref changes', () => {
194201
};
195202

196203
screen.render(() => (
204+
// $FlowFixMe[react-rule-hook]
197205
<View id="foo" key="foo" ref={useMergeRefs(refA, refB)} />
198206
));
199207

@@ -202,6 +210,7 @@ test('invokes all refs if any ref changes', () => {
202210
};
203211

204212
screen.render(() => (
213+
// $FlowFixMe[react-rule-hook]
205214
<View id="foo" key="foo" ref={useMergeRefs(refAPrime, refB)} />
206215
));
207216

packages/react-native/jest/setup.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -135,6 +135,7 @@ mock(
135135
// $FlowFixMe[incompatible-type] - `./mocks/UIManager` is incomplete.
136136
mock('m#../Libraries/ReactNative/UIManager', 'm#./mocks/UIManager');
137137
mock('m#../Libraries/Text/Text', 'm#./mocks/Text');
138+
// $FlowFixMe[react-rule-hook-incompatible]
138139
mock('m#../Libraries/Utilities/useColorScheme', 'm#./mocks/useColorScheme');
139140
// $FlowFixMe[incompatible-type]
140141
mock('m#../Libraries/Vibration/Vibration', 'm#./mocks/Vibration');

yarn.lock

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4956,10 +4956,10 @@ flow-api-translator@0.33.3:
49564956
hermes-transform "0.33.3"
49574957
typescript "5.3.2"
49584958

4959-
flow-bin@^0.297.0:
4960-
version "0.297.0"
4961-
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.297.0.tgz#69fa6510d1311083a4c9fd7d3294d481e895c804"
4962-
integrity sha512-WN9MrYZss1dGs+MzMqz6DjqErRQyyRfcm+8IsQFaKrtfLZrWSCBil0rP/ukv+DLL0jbNxhdlp14ks15TyznL+A==
4959+
flow-bin@^0.298.0:
4960+
version "0.298.0"
4961+
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.298.0.tgz#ab88aeb20464809d78405cb39c86e7aae9e5cfdb"
4962+
integrity sha512-vKh7o9UzO6+FKVttDr07aNsrE2oxUcp74lvzFjh7l1DynAGybu5IEq1y3pSQVTrAudrTJdqKrSYzscLfOnQ8Cg==
49634963

49644964
flow-enums-runtime@^0.0.6:
49654965
version "0.0.6"

0 commit comments

Comments
 (0)