Skip to content

Commit

Permalink
0.132 for xplat
Browse files Browse the repository at this point in the history
Summary:
Changelog: [Internal]

0.132 for xplat/js

allow-large-files

Reviewed By: mroch

Differential Revision: D23298358

fbshipit-source-id: 0c75746c0cc2895f63ebc034df386217ffb64c61
  • Loading branch information
jbrown215 authored and facebook-github-bot committed Aug 25, 2020
1 parent b7afbb1 commit 4aa69e6
Show file tree
Hide file tree
Showing 10 changed files with 24 additions and 8 deletions.
2 changes: 1 addition & 1 deletion .flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ untyped-import
untyped-type-import

[version]
^0.131.0
^0.132.0
2 changes: 1 addition & 1 deletion .flowconfig.android
Original file line number Diff line number Diff line change
Expand Up @@ -79,4 +79,4 @@ untyped-import
untyped-type-import

[version]
^0.131.0
^0.132.0
3 changes: 3 additions & 0 deletions Libraries/Utilities/ReactNativeTestTools.js
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@ const shallowRenderer = new ShallowRenderer();

import type {ReactTestRenderer as ReactTestRendererType} from 'react-test-renderer';

// $FlowFixMe[value-as-type]
export type ReactTestInstance = $PropertyType<ReactTestRendererType, 'root'>;

export type Predicate = (node: ReactTestInstance) => boolean;
Expand Down Expand Up @@ -93,6 +94,7 @@ function enter(instance: ReactTestInstance, text: string) {

// Returns null if there is no error, otherwise returns an error message string.
function maximumDepthError(
// $FlowFixMe[value-as-type]
tree: ReactTestRendererType,
maxDepthLimit: number,
): ?string {
Expand Down Expand Up @@ -184,6 +186,7 @@ function renderAndEnforceStrictMode(element: React.Node): any {
return renderWithStrictMode(element);
}

// $FlowFixMe[value-as-type]
function renderWithStrictMode(element: React.Node): ReactTestRendererType {
const WorkAroundBugWithStrictModeInTestRenderer = prps => prps.children;
const StrictMode = (React: $FlowFixMe).StrictMode;
Expand Down
2 changes: 2 additions & 0 deletions Libraries/vendor/emitter/_EmitterSubscription.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ import type EventSubscriptionVendor from './_EventSubscriptionVendor';
* EmitterSubscription represents a subscription with listener and context data.
*/
class EmitterSubscription extends EventSubscription {
// $FlowFixMe[value-as-type]
emitter: EventEmitter;
listener: Function;
context: ?Object;
Expand All @@ -33,6 +34,7 @@ class EmitterSubscription extends EventSubscription {
* listener
*/
constructor(
// $FlowFixMe[value-as-type]
emitter: EventEmitter,
subscriber: EventSubscriptionVendor,
listener: Function,
Expand Down
9 changes: 9 additions & 0 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@ module.exports = {
get Button(): Button {
return require('./Libraries/Components/Button');
},
// $FlowFixMe[value-as-type]
get DatePickerIOS(): DatePickerIOS {
warnOnce(
'DatePickerIOS-merged',
Expand All @@ -128,6 +129,7 @@ module.exports = {
);
return require('./Libraries/Components/DatePicker/DatePickerIOS');
},
// $FlowFixMe[value-as-type]
get DrawerLayoutAndroid(): DrawerLayoutAndroid {
return require('./Libraries/Components/DrawerAndroid/DrawerLayoutAndroid');
},
Expand Down Expand Up @@ -167,6 +169,7 @@ module.exports = {
);
return require('./Libraries/Components/Picker/Picker');
},
// $FlowFixMe[value-as-type]
get PickerIOS(): PickerIOS {
warnOnce(
'pickerios-moved',
Expand All @@ -179,6 +182,7 @@ module.exports = {
get Pressable(): Pressable {
return require('./Libraries/Components/Pressable/Pressable').default;
},
// $FlowFixMe[value-as-type]
get ProgressBarAndroid(): ProgressBarAndroid {
warnOnce(
'progress-bar-android-moved',
Expand All @@ -188,6 +192,7 @@ module.exports = {
);
return require('./Libraries/Components/ProgressBarAndroid/ProgressBarAndroid');
},
// $FlowFixMe[value-as-type]
get ProgressViewIOS(): ProgressViewIOS {
warnOnce(
'progress-view-ios-moved',
Expand All @@ -206,6 +211,7 @@ module.exports = {
get SectionList(): SectionList {
return require('./Libraries/Lists/SectionList');
},
// $FlowFixMe[value-as-type]
get SegmentedControlIOS(): SegmentedControlIOS {
warnOnce(
'segmented-control-ios-moved',
Expand Down Expand Up @@ -283,6 +289,7 @@ module.exports = {
get AppState(): AppState {
return require('./Libraries/AppState/AppState');
},
// $FlowFixMe[value-as-type]
get AsyncStorage(): AsyncStorage {
warnOnce(
'async-storage-moved',
Expand Down Expand Up @@ -403,6 +410,7 @@ module.exports = {
get Systrace(): Systrace {
return require('./Libraries/Performance/Systrace');
},
// $FlowFixMe[value-as-type]
get ToastAndroid(): ToastAndroid {
return require('./Libraries/Components/ToastAndroid/ToastAndroid');
},
Expand Down Expand Up @@ -477,6 +485,7 @@ module.exports = {
);
},
// Prop Types
// $FlowFixMe[value-as-type]
get ColorPropType(): DeprecatedColorPropType {
return require('./Libraries/DeprecatedPropTypes/DeprecatedColorPropType');
},
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -119,6 +119,7 @@
"ws": "^6.1.4"
},
"devDependencies": {
"flow-bin": "^0.132.0",
"react": "16.13.1"
},
"detox": {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,7 @@ exports.simpleExampleContainer = true;
exports.examples = [
{
title: 'Basic gesture handling',
// $FlowFixMe[value-as-type]
render: function(): React.Element<typeof PanResponderExample> {
return <PanResponderExample />;
},
Expand Down
2 changes: 1 addition & 1 deletion repo-config/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"eslint-plugin-react-hooks": "^4.0.7",
"eslint-plugin-react-native": "3.8.1",
"eslint-plugin-relay": "1.7.1",
"flow-bin": "^0.131.0",
"flow-bin": "^0.132.0",
"jest": "^26.0.1",
"jest-junit": "^10.0.0",
"jscodeshift": "^0.9.0",
Expand Down
2 changes: 1 addition & 1 deletion template/_flowconfig
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ untyped-import
untyped-type-import

[version]
^0.131.0
^0.132.0
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3261,10 +3261,10 @@ flatted@^2.0.0:
resolved "https://registry.yarnpkg.com/flatted/-/flatted-2.0.2.tgz#4575b21e2bcee7434aa9be662f4b7b5f9c2b5138"
integrity sha512-r5wGx7YeOwNWNlCA0wQ86zKyDLMQr+/RB8xy74M4hTphfmjlijTSSXGuH8rnvKZnfT9i+75zmd8jcKdMR4O6jA==

flow-bin@^0.131.0:
version "0.131.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.131.0.tgz#d4228b6070afdf3b2a76acdee77a7f3f8e8f5133"
integrity sha512-fZmoIBcDrtLhy/NNMxwJysSYzMr1ksRcAOMi3AHSoYXfcuQqTvhGJx+wqjlIOqIwz8RRYm8J4V4JrSJbIKP+Xg==
flow-bin@^0.132.0:
version "0.132.0"
resolved "https://registry.yarnpkg.com/flow-bin/-/flow-bin-0.132.0.tgz#8bf80a79630db24bd1422dc2cc4b5e97f97ccb98"
integrity sha512-S1g/vnAyNaLUdajmuUHCMl30qqye12gS6mr4LVyswf1k+JDF4efs6SfKmptuvnpitF3LGCVf0TIffChP8ljwnw==

flow-parser@0.*:
version "0.89.0"
Expand Down

0 comments on commit 4aa69e6

Please sign in to comment.