react-native/RNTester/js
Thomas BARRAS 35a65cd704 Flow strict TextInput (#22250)
Summary:
Related to #22100

Enhance TextInput with callback event types.
This is a first draft and I will need more help on this one. Flow checks are successful now but I am not sure types are accurate though.
Moreover I find my separation approach kind of dirty for callback event types.

- All flow tests succeed.

[GENERAL] [ENHANCEMENT] [TextInput.js] - Flow types
[GENERAL] [ENHANCEMENT] [TextInputExample.android.js] - Fixing Flow types
[GENERAL] [ENHANCEMENT] [TextInputExample.ios.js] - Fixing Flow types
[GENERAL] [ENHANCEMENT] [XHRExampleFetch.js] - Fixing Flow types
Pull Request resolved: https://github.com/facebook/react-native/pull/22250

Reviewed By: TheSavior

Differential Revision: D13104820

Pulled By: RSNara

fbshipit-source-id: 3fbb98d0ec2b62be676f71ae1053933d9c78485e
2018-11-21 14:33:48 -08:00
..
AnimatedGratuitousApp Remove var in RNTester (#22013) 2018-10-30 16:33:21 -07:00
Shared Fix onTextLayout metrics on Android when using alignText 2018-10-17 12:55:10 -07:00
Thumbnails Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
ARTExample.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
AccessibilityAndroidExample.android.js Remove var in RNTester (#22019) 2018-10-30 14:05:56 -07:00
AccessibilityIOSExample.js Replace global.alert use to fix eslint warnings (#22184) 2018-11-19 18:10:33 -08:00
ActionSheetIOSExample.js Replace global.alert use to fix eslint warnings (#22184) 2018-11-19 18:10:33 -08:00
ActivityIndicatorExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
AlertExample.js Remove var in RNTester (#22019) 2018-10-30 14:05:56 -07:00
AlertIOSExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
AnimatedExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
AppStateExample.js Remove var in RNTester (#22019) 2018-10-30 14:05:56 -07:00
AssetScaledImageExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
AsyncStorageExample.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
BorderExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
BoxShadowExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
ButtonExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
CameraRollExample.js Additional Flow changes to files that use this component 2018-10-18 12:28:28 -07:00
CameraRollView.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
CheckBoxExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
ClipboardExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
DatePickerAndroidExample.js Remove var in RNTester (#22018) 2018-10-30 14:29:30 -07:00
DatePickerIOSExample.js Remove var in RNTester (#22018) 2018-10-30 14:29:30 -07:00
DimensionsExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ExampleTypes.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
FlatListExample.js Remove legacyImplementation from FlatList and SectionList 2018-10-09 17:31:27 -07:00
GeolocationExample.js Replace global.alert use to fix eslint warnings (#22184) 2018-11-19 18:10:33 -08:00
ImageCapInsetsExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
ImageEditingExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
ImageExample.js Remove var in RNTester (#22018) 2018-10-30 14:29:30 -07:00
InputAccessoryViewExample.js Fix InputAccessoryView safe area when not attached to a TextInput (#21179) 2018-09-18 18:31:51 -07:00
KeyboardAvoidingViewExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
LayoutAnimationExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
LayoutEventsExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
LayoutExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
LinkingExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
ListExampleShared.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ListViewExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
ListViewGridLayoutExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
ListViewPagingExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
MaskedViewExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ModalExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
MultiColumnExample.js Replace global.alert use to fix eslint warnings (#22184) 2018-11-19 18:10:33 -08:00
NativeAnimationsExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
NetInfoExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
OrientationChangeExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
PanResponderExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
PermissionsExampleAndroid.android.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
PickerExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
PickerIOSExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
PointerEventsExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
ProgressBarAndroidExample.android.js Remove createReactClass from ProgressBarAndroidExample (#21874) 2018-11-02 12:14:29 -07:00
ProgressViewIOSExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
PushNotificationIOSExample.js Remove var in RNTester (#22017) 2018-10-30 12:57:29 -07:00
RCTRootViewIOSExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterActions.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterApp.android.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
RNTesterApp.ios.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
RNTesterBlock.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
RNTesterButton.js RNTester: Remove all but one instance of PropTypes (#21321) 2018-09-25 17:17:37 -07:00
RNTesterExampleContainer.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
RNTesterExampleList.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
RNTesterList.android.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterList.ios.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterNavigationReducer.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterPage.js RNTester: Remove all but one instance of PropTypes (#21321) 2018-09-25 17:17:37 -07:00
RNTesterSettingSwitchRow.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
RNTesterStatePersister.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RNTesterTitle.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
RTLExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RefreshControlExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
RootViewSizeFlexibilityExampleApp.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SafeAreaViewExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
ScrollViewExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
ScrollViewSimpleExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
SectionListExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
SegmentedControlIOSExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
SetPropertiesExampleApp.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ShareExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
SliderExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
SnapshotExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
StatusBarExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
SwipeableFlatListExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
SwipeableListViewExample.js SwipeableListView: Remove PropTypes (#21298) 2018-09-27 14:32:21 -07:00
SwitchExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
TVEventHandlerExample.js Deploy Flow v0.85 to xplat/js 2018-11-02 00:28:28 -07:00
TabBarIOSBarStyleExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
TabBarIOSExample.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
TextExample.android.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
TextExample.ios.js Remove var in RNTester (#22016) 2018-10-30 14:37:03 -07:00
TextInputExample.android.js Flow strict TextInput (#22250) 2018-11-21 14:33:48 -08:00
TextInputExample.ios.js Flow strict TextInput (#22250) 2018-11-21 14:33:48 -08:00
TimePickerAndroidExample.js Remove var in RNTester (#22015) 2018-10-30 14:26:59 -07:00
TimerExample.js Remove var in RNTester (#22015) 2018-10-30 14:26:59 -07:00
ToastAndroidExample.android.js Remove var in RNTester (#22015) 2018-10-30 14:26:59 -07:00
ToolbarAndroidExample.android.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
ToolbarAndroidExample.ios.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
TouchableExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
TransformExample.js Fix inline styles eslint warnings for examples (#22123) 2018-11-08 17:20:33 -08:00
TransparentHitTestExample.js Replace global.alert use to fix eslint warnings (#22184) 2018-11-19 18:10:33 -08:00
URIActionMap.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
VibrationExample.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
ViewExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
ViewPagerAndroidExample.android.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
WebSocketExample.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
WebViewExample.js Remove unused styles (#22083) 2018-11-05 13:57:47 -08:00
XHRExample.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
XHRExampleBinaryUpload.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
XHRExampleCookies.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
XHRExampleDownload.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
XHRExampleFetch.js Flow strict TextInput (#22250) 2018-11-21 14:33:48 -08:00
XHRExampleFormData.js Fix linting issues (#22062) 2018-11-01 14:29:16 -07:00
XHRExampleHeaders.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
XHRExampleOnTimeOut.js Remove var in RNTester (#22014) 2018-10-30 14:39:33 -07:00
bunny.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
createExamplePage.js Remove var in RNTester (#22013) 2018-10-30 16:33:21 -07:00
flux@3x.png fixed image in RNTester snapshot example 2017-08-31 15:16:05 -07:00
hawk.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
helloworld.html Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
http_test_server.js Update copyright headers to yearless format 2018-09-11 15:33:07 -07:00
imageMask.png MaskedViewIOS -- A way to apply alpha masks to views on iOS 2017-07-11 15:05:57 -07:00
messagingtest.html Typos in comments and log messages 2018-01-12 22:18:45 -08:00
relay@3x.png fixed image in RNTester snapshot example 2017-08-31 15:16:05 -07:00
slider-left.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
slider-left@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
slider-right.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
slider-right@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
slider.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
slider@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
uie_comment_highlighted@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
uie_comment_normal@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
uie_thumb_big.png Revert D5189017: [RN] Native implementation of <Image> intrinsic content size on iOS 2017-10-25 08:20:48 -07:00
uie_thumb_normal@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
uie_thumb_selected@2x.png Re-license and rename UIExplorer integration test app as RNTester 2017-05-08 11:31:19 -07:00
websocket_test_server.js JS: Switch from `new Buffer` to `Buffer.from` 2018-11-15 12:13:05 -08:00