From 41ea9dcbe810fb90a307fa1836e72ff08c42dd63 Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Sat, 18 Nov 2023 22:06:39 -0800 Subject: [PATCH 1/2] introduce ReactApple (#41419) Summary: Changelog: [iOS][something] Creating a new top level directory for Apple platform specific code. Reviewed By: christophpurrer Differential Revision: D51170984 --- packages/react-native/ReactApple/README.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 packages/react-native/ReactApple/README.md diff --git a/packages/react-native/ReactApple/README.md b/packages/react-native/ReactApple/README.md new file mode 100644 index 00000000000000..faafcb1dabb8de --- /dev/null +++ b/packages/react-native/ReactApple/README.md @@ -0,0 +1,5 @@ +# ReactApple + +ReactApple contains code to ship React Native apps to Apple devices. The dominant language is Objective-C. + +New libraries built with Apple frameworks or intended to ship to Apple devices should live in this directory. From 7eedd8e1601b9cadf6f781eef6b84791932a403e Mon Sep 17 00:00:00 2001 From: Phillip Pan Date: Sat, 18 Nov 2023 22:06:39 -0800 Subject: [PATCH 2/2] introduce RCTFoundation (#41418) Summary: Changelog: [iOS][Added] creating a top level directory for shared lightweight utility functions open to suggs on naming and rules we want to enforce Reviewed By: shwanton, christophpurrer Differential Revision: D51170983 --- .../ReactApple/Libraries/RCTFoundation/README.md | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 packages/react-native/ReactApple/Libraries/RCTFoundation/README.md diff --git a/packages/react-native/ReactApple/Libraries/RCTFoundation/README.md b/packages/react-native/ReactApple/Libraries/RCTFoundation/README.md new file mode 100644 index 00000000000000..b5bdb2bf6f040d --- /dev/null +++ b/packages/react-native/ReactApple/Libraries/RCTFoundation/README.md @@ -0,0 +1,12 @@ +# RCTFoundation + +RCTFoundation is a collection of lightweight utility libraries. + +Rules for RCTFoundation libraries: +- They must only depend on other RCTFoundation libraries. +- Headers cannot contain C++. +- They have modular set to true in BUCK. +- They have complete_nullability set to true. +- They have enabled Clang compiler warnings. +- They have documentation. +- They have unit tests.