Christoph Nakazawa
4148976a83
Use `invariant` instead of `fbjs/lib/invariant`
...
Summary: This is one more step to remove `fbjs` from `react-native-github`. This changes both the internal and external code to use `invariant` from zertosh instead of the copy in fbjs.
Reviewed By: yungsters
Differential Revision: D13195941
fbshipit-source-id: 73564ca1715110e7da9c7ef56dc57374d61377e0
2018-12-03 00:07:02 -08:00
Ramanpreet Nara
62e0d508d6
Move createStrictShapeTypeChecker to deprecated
...
Summary:
Related to #21342
Move createStrictShapeTypeChecker to DeprecatedCreateStrictShapeTypeChecker.
Reviewed By: hramos
Differential Revision: D10341526
fbshipit-source-id: 30e7f22ae574af620ead9c1a0766f00611b282b6
2018-10-12 15:17:02 -07:00
danibonilha
0de99bc8f5
Split ViewAccessibility into DeprecatedViewAccessibility and rename r… ( #21422 )
...
Summary:
This PR splits and renames all references of ViewAccessibility to DeprecatedViewAccessibility
Related to #21342
Pull Request resolved: https://github.com/facebook/react-native/pull/21422
Reviewed By: yungsters
Differential Revision: D10132659
Pulled By: RSNara
fbshipit-source-id: 68c371230c69ed37c3e44bf8a36043adb04afc78
2018-10-05 10:03:10 -07:00
JenLindsay
408207b356
Split ImageProps into DeprecatedPropTypes ( #21411 )
...
Summary:
Related to #21342
- Split ImageProps.js: moved propType declarations to DeprecatedImageProps.js
- Renamed ImageProps references to DeprecatedImageProps in Image.ios.js
Pull Request resolved: https://github.com/facebook/react-native/pull/21411
Reviewed By: TheSavior
Differential Revision: D10146178
Pulled By: RSNara
fbshipit-source-id: 4db15eaaa8822e834af347d1927991dff1c427cb
2018-10-02 13:47:44 -07:00
Daiki Nishikawa
b6b0fc1f27
Move and Rename custom propType definitions in LayoutPropTypes ( #21370 )
...
Summary:
related #21342
TODO
* move LayoutPropType.js
* fix flow error
CheckList
- [x] `yarn prettier`
- [x] `yarn flow-check-android`
- [x] `yarn flow-check-ios`
All flow checks pass.
[GENERAL] [ENHANCEMENT] [DeprecatedLayoutPropTypes.js] - Created.
[GENERAL] [ENHANCEMENT] [StyleSheetTypes.js] - add comments.
Pull Request resolved: https://github.com/facebook/react-native/pull/21370
Differential Revision: D10099715
Pulled By: RSNara
fbshipit-source-id: d0515fe0d56d9ed2fde50cc0bfb75b63aded1f5d
2018-10-01 12:19:15 -07:00
Thomas Carlson
d6f3d37802
Rename and move ViewStylePropTypes ( #21415 )
...
Summary:
Related to #21342
* Renamed ViewStyleProps to DeprecatedViewStyleProps.
* Moved propType declaration to `react-native/Libraries/DeprecatedPropTypes`
* ImageProps.js: moved propType declarations to DeprecatedImageProps.js.
Pull Request resolved: https://github.com/facebook/react-native/pull/21415
Reviewed By: TheSavior
Differential Revision: D10119599
Pulled By: RSNara
fbshipit-source-id: 67674039a88dcd570973c7062f86ebdbd6987d28
2018-10-01 12:19:15 -07:00
Ramanpreet Nara
e7ddc59019
Renames of ImageSource, ImageStyle, and TextProps propTypes
...
Reviewed By: TheSavior
Differential Revision: D10101195
fbshipit-source-id: 5c8cde81f92cac87b6cfe3fc1a36c78e4862c5ff
2018-09-28 23:21:40 -07:00
nd-02110114
84f18341aa
Move ImageSourcePropType.js, ImageStylePropTypes.js, TextPropTypes.js ( #21387 )
...
Summary:
related #21342
TODO
* move ImageSourcePropType.js, ImageStylePropTypes.js, TextPropTypes.js
* fix flow error
CheckList
- [x] `yarn prettier`
- [x] `yarn flow-check-android`
- [x] `yarn flow-check-ios`
All flow checks pass.
[GENERAL] [ENHANCEMENT] [DeprecatedImageSourcePropType.js] - Created.
[GENERAL] [ENHANCEMENT] [DeprecatedImageStylePropTypes.js] - Created.
[GENERAL] [ENHANCEMENT] [DeprecatedTextPropTypes.js] - Created.
Pull Request resolved: https://github.com/facebook/react-native/pull/21387
Reviewed By: TheSavior
Differential Revision: D10099753
Pulled By: RSNara
fbshipit-source-id: c907af6d1549ee42de1a2e17f278998e8422110f
2018-09-28 23:21:38 -07:00
Dani
d8b40cc541
Move and rename StyleSheetPropType to DeprecatedStyleSheetPropType ( #21380 )
...
Summary:
This PR moves and renames all references of StyleSheetPropType to DeprecatedStyleSheetPropType
Related to #21342
Pull Request resolved: https://github.com/facebook/react-native/pull/21380
Differential Revision: D10098216
Pulled By: TheSavior
fbshipit-source-id: da8d927f87bd37cdabc315e0aa17b6ae208f7124
2018-09-27 23:04:20 -07:00
Guilherme Varandas
f94d2ade86
Move and Rename propType definitions in ShadowPropTypesIOS ( #21379 )
...
Summary:
related #21342
move TransformPropTypes.js
fix flow error
- [x] yarn prettier
- [x] yarn flow-check-android
- [x] yarn flow-check-ios
All flow checks pass.
[GENERAL] [ENHANCEMENT] [DeprecatedShadowPropTypesIOS.js] - Created.
Pull Request resolved: https://github.com/facebook/react-native/pull/21379
Differential Revision: D10098750
Pulled By: TheSavior
fbshipit-source-id: f7f2e4bf7b837c00a14b1fbd930d1b29ffb63549
2018-09-27 19:46:45 -07:00
nd-02110114
c18458b394
Move and Rename custom propType definitions in ColorPropTypes ( #21371 )
...
Summary:
related #21342
TODO
* move ColorPropType.js
* fix flow error
CheckList
- [x] `yarn prettier`
- [x] `yarn flow-check-android`
- [x] `yarn flow-check-ios`
All flow checks pass.
[GENERAL] [ENHANCEMENT] [DeprecatedColorPropType.js] - Created.
Pull Request resolved: https://github.com/facebook/react-native/pull/21371
Reviewed By: RSNara
Differential Revision: D10087818
Pulled By: TheSavior
fbshipit-source-id: 48088b441699886eef1fff3aafc2ca6015455006
2018-09-27 17:33:40 -07:00
Thomas BARRAS
e3ae85d7c7
TVViewPropTypes, PlatformViewPropTypes, DeprecatedTVViewPropTypes ( #21372 )
...
Summary:
Related to #21342
- Split TVViewPropTypes
- PlatformViewPropTypes (dependencies) flow types and old prop-type definitions
- ViewStylePropTypes (dependencies) rm prop-type
Flow tests succeed
[GENERAL] [ENHANCEMENT] [TVViewPropTypes.js] - rm prop-types
[GENERAL] [ENHANCEMENT] [PlatformViewPropTypes.android.js] - replace prop-types by Flow
[GENERAL] [ENHANCEMENT] [PlatformViewPropTypes.ios.js] - replace prop-types by Flow
[GENERAL] [ENHANCEMENT] [DeprecatedTVViewPropTypes.js] - old prop-types
Pull Request resolved: https://github.com/facebook/react-native/pull/21372
Differential Revision: D10095528
Pulled By: TheSavior
fbshipit-source-id: 4fc52ab194f680f95aabefedcbf119d6897672b7
2018-09-27 16:35:42 -07:00
Guilherme Varandas
0da7e8d9ae
Move and Rename propType definitions in TransformPropTypes ( #21375 )
...
Summary:
related #21342
move TransformPropTypes.js
fix flow error
- [x] yarn prettier
- [x] yarn flow-check-android
- [x] yarn flow-check-ios
All flow checks pass.
[GENERAL] [ENHANCEMENT] [DeprecatedTransformPropTypes.js] - Created.
Pull Request resolved: https://github.com/facebook/react-native/pull/21375
Differential Revision: D10095453
Pulled By: TheSavior
fbshipit-source-id: fbf677a000e3c6c0bd31e915dcafbd2d561be6e3
2018-09-27 16:18:32 -07:00
danibonilha
f68b0c9d79
Split EdgeInsets in DeprecatedPropTypes and flow types ( #21351 )
...
Summary:
This PR splits EdgeInsetsPropTypes into EdgeInsetsPropTypes with only flow types and DeprecatedEdgeInsetsPropTypes inside DeprecatedProptypes with only PropTypes.
Related to #21342
Pull Request resolved: https://github.com/facebook/react-native/pull/21351
Reviewed By: RSNara
Differential Revision: D10081512
Pulled By: TheSavior
fbshipit-source-id: 267a6fbb455e02dd7f2b0f3b59790e96387eaa09
2018-09-27 11:02:13 -07:00
Rafael Nunes G. da Silveira
f3c8027595
Split PointPropType ( #21355 )
...
Summary:
This PR split PointPropType.js into PointPropType.js with Flow definition and Libraries/DeprecatedPointPropType.js remaining with PropTypes definition.
Related to #21342
Pull Request resolved: https://github.com/facebook/react-native/pull/21355
Differential Revision: D10081399
Pulled By: TheSavior
fbshipit-source-id: 2283ff3fbda6b0f525742336f92fd6279250b874
2018-09-26 22:35:11 -07:00
empyrical
1b909085fd
Move DeprecatedViewPropTypes to DeprecatedViewProps ( #21349 )
...
Summary:
This PR moves `DeprecatedViewPropTypes` to a new `DeprecatedViewProps` folder, and copies all documentation comments to the relevant Flow types file.
Pull Request resolved: https://github.com/facebook/react-native/pull/21349
Differential Revision: D10080802
Pulled By: TheSavior
fbshipit-source-id: af4881f3b12e8a1e675b849e0fcf0cc57a68e57f
2018-09-26 20:47:07 -07:00