mirror of
https://github.com/status-im/react-native.git
synced 2025-01-10 09:35:48 +00:00
eea4842972
Summary: This was done by running the command on: https://our.intern.facebook.com/intern/wiki/Flow_Strict/ ``` ag -L --ignore __snapshots__ 'flow strict$|noflow|generated|partially-generated' | ag '\.js$' | xargs ag -l 'flow' | sort > ~/temp cat ~/temp | xargs ag -L 'flow strict' | xargs sed -i 's/flow$/flow strict/' cat ~/temp | xargs ag -L 'flow strict$' | xargs sed -i 's/flow strict-local$/flow strict/' until flow; do flow --json | jq -r '.errors[].message[0].path' | sort | uniq | xargs hg revert; done ``` Reviewed By: sahrens Differential Revision: D8530207 fbshipit-source-id: c28c7ac5ed3e9b80f3d126d5f30463be8a8a744d
57 lines
997 B
JavaScript
57 lines
997 B
JavaScript
/**
|
|
* Copyright (c) 2015-present, Facebook, Inc.
|
|
*
|
|
* This source code is licensed under the MIT license found in the
|
|
* LICENSE file in the root directory of this source tree.
|
|
*
|
|
* @format
|
|
* @flow strict
|
|
*/
|
|
|
|
'use strict';
|
|
|
|
export type RNTesterBackAction = {
|
|
type: 'RNTesterBackAction',
|
|
};
|
|
|
|
export type RNTesterListAction = {
|
|
type: 'RNTesterListAction',
|
|
};
|
|
|
|
export type RNTesterExampleAction = {
|
|
type: 'RNTesterExampleAction',
|
|
openExample: string,
|
|
};
|
|
|
|
export type RNTesterAction =
|
|
| RNTesterBackAction
|
|
| RNTesterListAction
|
|
| RNTesterExampleAction;
|
|
|
|
function Back(): RNTesterBackAction {
|
|
return {
|
|
type: 'RNTesterBackAction',
|
|
};
|
|
}
|
|
|
|
function ExampleList(): RNTesterListAction {
|
|
return {
|
|
type: 'RNTesterListAction',
|
|
};
|
|
}
|
|
|
|
function ExampleAction(openExample: string): RNTesterExampleAction {
|
|
return {
|
|
type: 'RNTesterExampleAction',
|
|
openExample,
|
|
};
|
|
}
|
|
|
|
const RNTesterActions = {
|
|
Back,
|
|
ExampleList,
|
|
ExampleAction,
|
|
};
|
|
|
|
module.exports = RNTesterActions;
|