Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat!: add ability to use react-native-test-app for example/ app #572

Merged
merged 11 commits into from
Jul 3, 2024

Conversation

szymonrybczak
Copy link
Contributor

Summary

Use react-native-test-app for exmaple/ app. RNTA was created to help library maintainers focus on building library by providing seamless React Native versions switching, first-class support for OOT platforms and a lot more!

Test plan

Generated app should work in the same way as before (created library should be automatically linked).

CleanShot 2024-06-27 at 16 51 30@2x

@callstack callstack deleted a comment Jun 27, 2024
@szymonrybczak szymonrybczak changed the title feat!: use react-native-test-app in example/ app feat!: add ability to use react-native-test-app for example/ app Jun 27, 2024
@satya164 satya164 force-pushed the szymonrybczak/feat-add-rnta branch from 4a906ef to 9d290d2 Compare July 3, 2024 12:46
Copy link
Member

@satya164 satya164 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks!

@satya164 satya164 added this pull request to the merge queue Jul 3, 2024
Merged via the queue into main with commit a71fc0c Jul 3, 2024
31 of 32 checks passed
@satya164 satya164 deleted the szymonrybczak/feat-add-rnta branch July 3, 2024 13:25
github-merge-queue bot pushed a commit that referenced this pull request Jul 5, 2024
<!-- Please provide enough information so that others can review your
pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

In #572 we've
introduced `test-app` as an option for `example` project, and CRNL
contains two scripts `build:ios` and `build:android` that are injected
when creating project, RNTA also contains two scripts named in the same
way, which are then replaced - in this Pull Request in relevant scenario
I added logic which joins two scripts.

### Test plan

1. Create a new project with `create-react-native-library`
2. Choose `test-app` for `example/`
3. `build:ios` and `build:android` should contain logic of creating and
bundling app as well as building app with relevant options.
github-merge-queue bot pushed a commit that referenced this pull request Jul 22, 2024
<!-- Please provide enough information so that others can review your
pull request. -->
<!-- Keep pull requests small and focused on a single change. -->

### Summary

A regression introduced in
#572.

CRNL shouldn't ask for example type in local library scenario.

### Test plan

1. Run `create-react-native-library` under a React Native project.
2. Example project shouldn't be included in the local library.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants