mirror of
https://github.com/status-im/react-native.git
synced 2025-01-14 11:34:23 +00:00
Upgrade to v0.44.0
Reviewed By: zertosh Differential Revision: D4893660 fbshipit-source-id: ed85f5d4c585164d464a7e009888a28e5af339cd
This commit is contained in:
parent
d5601a3e12
commit
92f900c79d
@ -41,12 +41,12 @@ suppress_type=$FlowIssue
|
|||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-4]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-4]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native_oss[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.43.1
|
^0.44.0
|
||||||
|
@ -28,6 +28,7 @@ type NormalProps = {
|
|||||||
|
|
||||||
// Provide either `items` or `sections`
|
// Provide either `items` or `sections`
|
||||||
items?: ?Array<Item>, // By default, an Item is assumed to be {key: string}
|
items?: ?Array<Item>, // By default, an Item is assumed to be {key: string}
|
||||||
|
// $FlowFixMe - Something is a little off with the type Array<Item>
|
||||||
sections?: ?Array<{key: string, data: Array<Item>}>,
|
sections?: ?Array<{key: string, data: Array<Item>}>,
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -39,10 +40,16 @@ type NormalProps = {
|
|||||||
* Set this true while waiting for new data from a refresh.
|
* Set this true while waiting for new data from a refresh.
|
||||||
*/
|
*/
|
||||||
refreshing?: boolean,
|
refreshing?: boolean,
|
||||||
|
/**
|
||||||
|
* If true, renders items next to each other horizontally instead of stacked vertically.
|
||||||
|
*/
|
||||||
|
horizontal?: ?boolean,
|
||||||
};
|
};
|
||||||
type DefaultProps = {
|
type DefaultProps = {
|
||||||
keyExtractor: (item: Item) => string,
|
keyExtractor: (item: Item, index: number) => string,
|
||||||
};
|
};
|
||||||
|
/* $FlowFixMe - the renderItem passed in from SectionList is optional there but
|
||||||
|
* required here */
|
||||||
type Props = NormalProps & DefaultProps;
|
type Props = NormalProps & DefaultProps;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@ -74,7 +81,7 @@ class MetroListView extends React.Component {
|
|||||||
return this._listRef;
|
return this._listRef;
|
||||||
}
|
}
|
||||||
static defaultProps: DefaultProps = {
|
static defaultProps: DefaultProps = {
|
||||||
keyExtractor: (item, index) => item.key || index,
|
keyExtractor: (item, index) => item.key || String(index),
|
||||||
renderScrollComponent: (props: Props) => {
|
renderScrollComponent: (props: Props) => {
|
||||||
if (props.onRefresh) {
|
if (props.onRefresh) {
|
||||||
return (
|
return (
|
||||||
|
@ -156,6 +156,8 @@ type OptionalProps<SectionT: SectionBase<any>> = {
|
|||||||
* enabled by default on iOS because that is the platform standard there.
|
* enabled by default on iOS because that is the platform standard there.
|
||||||
*/
|
*/
|
||||||
stickySectionHeadersEnabled?: boolean,
|
stickySectionHeadersEnabled?: boolean,
|
||||||
|
|
||||||
|
legacyImplementation?: ?boolean,
|
||||||
};
|
};
|
||||||
|
|
||||||
type Props<SectionT> = RequiredProps<SectionT>
|
type Props<SectionT> = RequiredProps<SectionT>
|
||||||
|
@ -134,6 +134,8 @@ type OptionalProps = {
|
|||||||
*/
|
*/
|
||||||
windowSize: number,
|
windowSize: number,
|
||||||
};
|
};
|
||||||
|
/* $FlowFixMe - this Props seems to be missing a bunch of stuff. Remove this
|
||||||
|
* comment to see the errors */
|
||||||
export type Props = RequiredProps & OptionalProps;
|
export type Props = RequiredProps & OptionalProps;
|
||||||
|
|
||||||
let _usedIndexForKey = false;
|
let _usedIndexForKey = false;
|
||||||
|
@ -36,12 +36,12 @@ suppress_type=$FlowIssue
|
|||||||
suppress_type=$FlowFixMe
|
suppress_type=$FlowFixMe
|
||||||
suppress_type=$FixMe
|
suppress_type=$FixMe
|
||||||
|
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixMe\\($\\|[^(]\\|(\\(>=0\\.\\(4[0-4]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-3]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
suppress_comment=\\(.\\|\n\\)*\\$FlowIssue\\((\\(>=0\\.\\(4[0-4]\\|[1-3][0-9]\\|[0-9]\\).[0-9]\\)? *\\(site=[a-z,_]*react_native[a-z,_]*\\)?)\\)?:? #[0-9]+
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
suppress_comment=\\(.\\|\n\\)*\\$FlowFixedInNextDeploy
|
||||||
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
suppress_comment=\\(.\\|\n\\)*\\$FlowExpectedError
|
||||||
|
|
||||||
unsafe.enable_getters_and_setters=true
|
unsafe.enable_getters_and_setters=true
|
||||||
|
|
||||||
[version]
|
[version]
|
||||||
^0.43.1
|
^0.44.0
|
||||||
|
@ -221,7 +221,7 @@
|
|||||||
"eslint-plugin-flowtype": "^2.20.0",
|
"eslint-plugin-flowtype": "^2.20.0",
|
||||||
"eslint-plugin-react": "^6.4.1",
|
"eslint-plugin-react": "^6.4.1",
|
||||||
"eslint-config-fbjs": "^1.1.1",
|
"eslint-config-fbjs": "^1.1.1",
|
||||||
"flow-bin": "^0.43.1",
|
"flow-bin": "^0.44.0",
|
||||||
"jest": "19.0.2",
|
"jest": "19.0.2",
|
||||||
"jest-repl": "19.0.2",
|
"jest-repl": "19.0.2",
|
||||||
"jest-runtime": "19.0.2",
|
"jest-runtime": "19.0.2",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user