Upgrade to 1.9.1
Reviewed By: vjeux Differential Revision: D6497877 fbshipit-source-id: 3b88b96e375ddf1fbe039a0593569bbdde40a2dc
This commit is contained in:
parent
4034febb7e
commit
9f33fe2583
|
@ -173,7 +173,9 @@ function validateTransform(configs: Array<Object>): void {
|
|||
configs.forEach(config => {
|
||||
if (!TRANSFORM_WHITELIST.hasOwnProperty(config.property)) {
|
||||
throw new Error(
|
||||
`Property '${config.property}' is not supported by native animated module`,
|
||||
`Property '${
|
||||
config.property
|
||||
}' is not supported by native animated module`,
|
||||
);
|
||||
}
|
||||
});
|
||||
|
|
|
@ -59,7 +59,9 @@ class URL {
|
|||
if (BLOB_URL_PREFIX === null) {
|
||||
throw new Error('Cannot create URL for blob!');
|
||||
}
|
||||
return `${BLOB_URL_PREFIX}${blob.blobId}?offset=${blob.offset}&size=${blob.size}`;
|
||||
return `${BLOB_URL_PREFIX}${blob.blobId}?offset=${blob.offset}&size=${
|
||||
blob.size
|
||||
}`;
|
||||
}
|
||||
|
||||
static revokeObjectURL(url: string) {
|
||||
|
|
|
@ -60,17 +60,17 @@ export type ViewabilityConfig = {|
|
|||
|};
|
||||
|
||||
/**
|
||||
* A Utility class for calculating viewable items based on current metrics like scroll position and
|
||||
* layout.
|
||||
*
|
||||
* An item is said to be in a "viewable" state when any of the following
|
||||
* is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`
|
||||
* is true):
|
||||
*
|
||||
* - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item
|
||||
* visible in the view area >= `itemVisiblePercentThreshold`.
|
||||
* - Entirely visible on screen
|
||||
*/
|
||||
* A Utility class for calculating viewable items based on current metrics like scroll position and
|
||||
* layout.
|
||||
*
|
||||
* An item is said to be in a "viewable" state when any of the following
|
||||
* is true for longer than `minimumViewTime` milliseconds (after an interaction if `waitForInteraction`
|
||||
* is true):
|
||||
*
|
||||
* - Occupying >= `viewAreaCoveragePercentThreshold` of the view area XOR fraction of the item
|
||||
* visible in the view area >= `itemVisiblePercentThreshold`.
|
||||
* - Entirely visible on screen
|
||||
*/
|
||||
class ViewabilityHelper {
|
||||
_config: ViewabilityConfig;
|
||||
_hasInteracted: boolean = false;
|
||||
|
|
|
@ -398,7 +398,8 @@ class YellowBox extends React.Component<
|
|||
onDismissAll={() => this.dismissWarning(null)}
|
||||
onMinimize={() => this.setState({inspecting: null})}
|
||||
toggleStacktrace={() =>
|
||||
this.setState({stacktraceVisible: !stacktraceVisible})}
|
||||
this.setState({stacktraceVisible: !stacktraceVisible})
|
||||
}
|
||||
/>
|
||||
) : null;
|
||||
|
||||
|
|
|
@ -75,13 +75,15 @@ class EventCheckBoxExample extends React.Component<{}, $FlowFixMeState> {
|
|||
<View>
|
||||
<CheckBox
|
||||
onValueChange={value =>
|
||||
this.setState({eventCheckBoxRegressionIsOn: value})}
|
||||
this.setState({eventCheckBoxRegressionIsOn: value})
|
||||
}
|
||||
style={{marginBottom: 10}}
|
||||
value={this.state.eventCheckBoxRegressionIsOn}
|
||||
/>
|
||||
<CheckBox
|
||||
onValueChange={value =>
|
||||
this.setState({eventCheckBoxRegressionIsOn: value})}
|
||||
this.setState({eventCheckBoxRegressionIsOn: value})
|
||||
}
|
||||
style={{marginBottom: 10}}
|
||||
value={this.state.eventCheckBoxRegressionIsOn}
|
||||
/>
|
||||
|
|
|
@ -208,7 +208,7 @@
|
|||
"eslint-plugin-react": "^7.2.1",
|
||||
"flow-bin": "^0.60.1",
|
||||
"jest": "21.3.0-beta.13",
|
||||
"prettier": "1.7.0",
|
||||
"prettier": "1.9.1",
|
||||
"react": "16.2.0",
|
||||
"react-test-renderer": "16.2.0",
|
||||
"shelljs": "^0.7.8",
|
||||
|
|
Loading…
Reference in New Issue