Support excluding multiple platforms.

Summary:
Currently the schema only allows to exclude a single platform (iOS OR Android). There are cases where we need to exclude multiple. This change converts the previous `excludePlatform` string property into an `excludePlatforms` array.

Changelog:
[Internal][Changed] - Added support to exclude multiple platforms in Codegen.

Reviewed By: sammy-SC

Differential Revision: D21426950

fbshipit-source-id: eff36ffa207109274794b4b300bf6313f8286161
This commit is contained in:
João Vieira authored and Facebook GitHub Bot committed 2020-05-07 09:43:52 -07:00
1 parent 7bb1c4e1b8
commit 16ea9ba813
31 files changed
+499 -19

No files matched your search

@@ -61,5 +61,5 @@ export const Commands: NativeCommands = codegenNativeCommands<NativeCommands>({
export default (codegenNativeComponent<NativeProps>('PullToRefreshView', {
paperComponentName: 'RCTRefreshControl',
excludedPlatform: 'android',
excludedPlatforms: ['android'],
}): HostComponent<NativeProps>);