diff --git a/.flowconfig b/.flowconfig
index 78c058204..db960b5f1 100644
--- a/.flowconfig
+++ b/.flowconfig
@@ -48,6 +48,9 @@ Libraries/react-native/react-native-interface.js
[options]
module.system=haste
+esproposal.class_static_fields=enable
+esproposal.class_instance_fields=enable
+
munge_underscores=true
module.name_mapper='^image![a-zA-Z0-9$_-]+$' -> 'GlobalImageStub'
diff --git a/Examples/2048/Game2048.js b/Examples/2048/Game2048.js
index 239d1dade..a6c97a3e3 100644
--- a/Examples/2048/Game2048.js
+++ b/Examples/2048/Game2048.js
@@ -53,6 +53,8 @@ class Board extends React.Component {
}
class Tile extends React.Component {
+ state: any;
+
static _getPosition(index): number {
return BOARD_PADDING + (index * (CELL_SIZE + CELL_MARGIN * 2) + CELL_MARGIN);
}
@@ -147,6 +149,7 @@ class GameEndOverlay extends React.Component {
class Game2048 extends React.Component {
startX: number;
startY: number;
+ state: any;
constructor(props: {}) {
super(props);
diff --git a/Examples/UIExplorer/AlertIOSExample.js b/Examples/UIExplorer/AlertIOSExample.js
index a52c1ab79..d7f0bcf0d 100644
--- a/Examples/UIExplorer/AlertIOSExample.js
+++ b/Examples/UIExplorer/AlertIOSExample.js
@@ -37,7 +37,7 @@ exports.examples = [{
},
{
title: 'Prompt Options',
- render(): React.Component {
+ render(): ReactElement {
return ;
}
},
@@ -85,9 +85,13 @@ exports.examples = [{
}];
class PromptOptions extends React.Component {
+ state: any;
+ customButtons: Array