Back out "Upgrade Prettier from 1.17 to 2.0.2."

Differential Revision: D20639755

fbshipit-source-id: 5028563f9cf0527a30b4259daac50cdc03934bfd
This commit is contained in:
Michael Bolin
2020-03-24 21:35:58 -07:00
committed by Facebook GitHub Bot
parent cf44650b3f
commit 0b9ea60b4f
383 changed files with 2072 additions and 2051 deletions
@@ -51,7 +51,7 @@ class Item extends React.Component<ItemProps, ItemState> {
}
}
const getInitialState = function () {
const getInitialState = function() {
const data = [];
for (let i = 0; i < NUM_ITEMS; i++) {
data[i] = {text: 'Item ' + i + '!'};
@@ -61,28 +61,28 @@ const getInitialState = function () {
};
};
const onScroll = function (e) {
const onScroll = function(e) {
ScrollListener.onScroll(
e.nativeEvent.contentOffset.x,
e.nativeEvent.contentOffset.y,
);
};
const onScrollBeginDrag = function (e) {
const onScrollBeginDrag = function(e) {
ScrollListener.onScrollBeginDrag(
e.nativeEvent.contentOffset.x,
e.nativeEvent.contentOffset.y,
);
};
const onScrollEndDrag = function (e) {
const onScrollEndDrag = function(e) {
ScrollListener.onScrollEndDrag(
e.nativeEvent.contentOffset.x,
e.nativeEvent.contentOffset.y,
);
};
const onItemPress = function (itemNumber) {
const onItemPress = function(itemNumber) {
ScrollListener.onItemPress(itemNumber);
};