react-native/packages/helloworld
Riccardo Cipolleschi fe1057afcd Let lib maintainer be explicit with componentProvider mapping (#47520)
Summary:
Pull Request resolved: https://github.com/facebook/react-native/pull/47520

Right now, when a 3p library needs to register a component in the component system, we have to crawl the library to try and get the mappng, best effort.

With this approach, we are enriching the `codegenConfig` property to allow library developers to define the mapping themselves.

For example:
```json
//...
"codegenConfig": {
    //..
    "ios": {
      "componentProvider": {
        "RNTMyNativeView": "RNTMyNativeViewComponentView"
      }
    }
  },
```
means that the JS component `RNTMyNativeView` will be mapped to the `RNTMyNativeViewComponentView` class.

This also work for local apps, and it warns the users about what libraries are using the deprecated approach, so they can open an issue or a PR to those libraries.

## Changelog:
[iOS][Added] - Allow 3p developers to specify the association between components and classes in Fabric

Reviewed By: dmytrorykun

Differential Revision: D65666061

fbshipit-source-id: 692e753635873ff9260e131d2d18ed226b2378c2
2024-11-12 07:38:03 -08:00
..
__tests__ CLI supports ordering of tasks 2024-04-29 05:04:26 -07:00
.bundle
android Bump NDK to 27.1 (#46357) 2024-10-24 10:58:09 -07:00
ios Let lib maintainer be explicit with componentProvider mapping (#47520) 2024-11-12 07:38:03 -08:00
lib swap test_ios_template for test_ios_helloworld in CircleCI (#44815) 2024-06-06 14:41:19 -07:00
scripts fix: ios Helloworld assumes community cli is present (#45221) 2024-06-28 12:05:14 -07:00
.gitignore CLI supports ordering of tasks 2024-04-29 05:04:26 -07:00
.prettierrc.js
.react-native.config fix: ios Helloworld assumes community cli is present (#45221) 2024-06-28 12:05:14 -07:00
App.jsx RN: Fix lint/sort-imports Errors (#47109) 2024-10-18 04:07:02 -07:00
babel.config.js
cli.flow.js cli assemble support (#44903) 2024-06-13 04:51:20 -07:00
cli.js RN: Fix lint/sort-imports Errors (#47109) 2024-10-18 04:07:02 -07:00
Gemfile Pin Xcodeproj to < 1.26.0 (#47237) 2024-10-28 04:20:31 -07:00
Gemfile.lock Let lib maintainer be explicit with componentProvider mapping (#47520) 2024-11-12 07:38:03 -08:00
index.js CLI supports ordering of tasks 2024-04-29 05:04:26 -07:00
jest.config.js
metro.config.js CLI supports ordering of tasks 2024-04-29 05:04:26 -07:00
package.json Revert React 19RC to React 18.3.1 (#47380) 2024-11-08 08:27:37 -08:00
README.md

Hello World Test Application

This is the React Native HelloWorld test app. It is for internal use and shouldn't be dependend on.