Add Types to simplify the SPM build process (#51847)

Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/51847

This change introduces a types.js to add some useful flow types to build React Native with Swift PM.

## Changelog:
[Internal] -

Reviewed By: cortinico

Differential Revision: D76045454

fbshipit-source-id: 352e9f1a2845106c49461c3ac66188f49b520eb3
This commit is contained in:
Riccardo Cipolleschi
2025-06-06 06:43:33 -07:00
committed by Facebook GitHub Bot
parent 55534f518a
commit 6b287c0f2f
+23
View File
@@ -0,0 +1,23 @@
/**
* Copyright (c) Meta Platforms, Inc. and affiliates.
*
* This source code is licensed under the MIT license found in the
* LICENSE file in the root directory of this source tree.
*
* @flow
* @format
*/
/*::
export type Platform =
'ios' |
'ios-simulator' |
'mac-catalyst';
export type Destination =
'iOS' |
'iOS Simulator' |
'macOS,variant=Mac Catalyst';
*/
module.exports = {};