This app demoes the use of CustomText Component which is forked from React Native Source Code version 77. It works on old architecture but on new architecture it throws error.
- 1. Create a new reproducer project.
- 2. Git clone your repository locally.
- 3. Edit the project to reproduce the failure you're seeing.
- 4. Push your changes, so that Github Actions can run the CI.
- 5. Make sure the repository is public and share the link with the issue you reported.
# using Yarn
yarn First, you will need to start Metro, the JavaScript bundler that ships with React Native.
To start Metro, run the following command from the root of your React Native project:
# using Yarn
yarn startLet Metro Bundler run in its own terminal. Open a new terminal from the root of your React Native project. Run the following command to start your Android or iOS app:
# using Yarn
yarn androidon New Architecture : Above will run the app on android emulator on new architecture but on load app is throwing an error -Attempt to create a native View for AndroidVirtualTextCustom failed. please see the error screenshot at root
On Old: when updating in gradle.properties newArchEnabled=false and rebuild then same app works fine with out any issue