mirror of
https://github.com/facebook/react-native.git
synced 2025-11-01 09:14:26 +00:00
Allow primitivies without default values
Summary: It's not needed to keep required providing default values even if they are not actually relevant. Here I add a support for `null`, `0` of `false` instead by default and remove throwing errors if no other default value provided. Reviewed By: rubennorte Differential Revision: D16049047 fbshipit-source-id: bc4961af3873190568f2753fc4ec975354896df5
This commit is contained in:
committed by
Facebook Github Bot
parent
0f83dfab8e
commit
75d01075d4
@@ -61,7 +61,7 @@ type NativeProps = $ReadOnly<{|
|
||||
/**
|
||||
* Whether the view should be indicating an active refresh.
|
||||
*/
|
||||
refreshing: WithDefault<boolean, false>,
|
||||
refreshing: boolean,
|
||||
|}>;
|
||||
|
||||
export default codegenNativeComponent<NativeProps>('AndroidSwipeRefreshLayout');
|
||||
|
||||
Reference in New Issue
Block a user