[change] Remove PropTypes exports and internal use

Removes the following deprecated exports: `ColorPropType`,
`EdgeInsetsPropType`, `PointPropType`, `TextPropTypes`, and `ViewPropTypes`.

Remove all use of `prop-types` in the implementations of components. Flow types
are used instead, so there will no longer be runtime warnings related to props.

NOTE: Removes support for `className` prop.

Fix #1383
Close #1477
Close #1474
Close #1489
This commit is contained in:
Nicolas Gallagher
2019-12-18 12:40:31 +00:00
parent 924e891f58
commit 1ad1693039
133 changed files with 1051 additions and 3032 deletions
@@ -10,13 +10,11 @@ module.exports = {
Button: true,
CheckBox: true,
Clipboard: true,
ColorPropType: true,
DeviceEventEmitter: true,
DeviceInfo: true,
Dimensions: true,
DrawerLayoutAndroid: true,
Easing: true,
EdgeInsetsPropType: true,
FlatList: true,
I18nManager: true,
Image: true,
@@ -35,7 +33,6 @@ module.exports = {
Picker: true,
PixelRatio: true,
Platform: true,
PointPropType: true,
ProgressBar: true,
RefreshControl: true,
SafeAreaView: true,
@@ -51,7 +48,6 @@ module.exports = {
TabBarIOS: true,
Text: true,
TextInput: true,
TextPropTypes: true,
TimePickerAndroid: true,
ToastAndroid: true,
Touchable: true,
@@ -62,7 +58,6 @@ module.exports = {
UIManager: true,
Vibration: true,
View: true,
ViewPropTypes: true,
VirtualizedList: true,
YellowBox: true,
createElement: true,