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

refact: merge example and test example apps #2225

Merged
merged 20 commits into from
Jul 9, 2024
Merged

Conversation

alduzy
Copy link
Member

@alduzy alduzy commented Jul 2, 2024

Description

This PR intents to merge together the example and test-example apps resulting in less configuration files.
TestsExample and FabricTestExample apps are removed so there's only Example, FabricExample and TVOSExample app to take care of.

it is more convenient to use Example and FabricExample apps to run tests as there is less configuration files to take care of, less building and less metro restarting. Simply replace the returned component in apps/App.tsx with the selected test and you're ready for testing. For example replace <Example/> with <Test.Test42/>.

Changes

  • removed TestsExample and FabricTestExample apps
  • allowed for source change in apps/App.tsx file to switch between example and tests

Test code and steps to reproduce

Run the Example or FabricExample app and change source in apps/App.tsx file.

Checklist

apps/TestApp.tsx Outdated Show resolved Hide resolved
guides/CONTRIBUTING.md Outdated Show resolved Hide resolved
@alduzy alduzy requested a review from maciekstosio July 8, 2024 13:53
@alduzy alduzy force-pushed the @alduzy/merge-example-apps branch 2 times, most recently from f75abdf to 86d469f Compare July 8, 2024 14:16
Copy link
Contributor

@maciekstosio maciekstosio left a comment

Choose a reason for hiding this comment

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

lgtm 🎉

Co-authored-by: maciekstosio <maciekstosio@icloud.com>
@alduzy alduzy force-pushed the @alduzy/merge-example-apps branch from 5dc1318 to c5cd87a Compare July 9, 2024 09:11
@alduzy alduzy merged commit 151c1c7 into main Jul 9, 2024
8 checks passed
@alduzy alduzy deleted the @alduzy/merge-example-apps branch July 9, 2024 12:42
ja1ns pushed a commit to WiseOwlTech/react-native-screens that referenced this pull request Oct 9, 2024
## Description

This PR intents to merge together the example and test-example apps
resulting in less configuration files.
TestsExample and FabricTestExample apps are removed so there's only
Example, FabricExample and TVOSExample app to take care of.

it is more convenient to use Example and FabricExample apps to run tests
as there is less configuration files to take care of, less building and
less metro restarting. Simply replace the returned component in
`apps/App.tsx` with the selected test and you're ready for testing. For
example replace `<Example/>` with `<Test.Test42/>`.

## Changes

- removed TestsExample and FabricTestExample apps
- allowed for source change in `apps/App.tsx` file to switch between
example and tests

<!--

## Screenshots / GIFs

Here you can add screenshots / GIFs documenting your change.

You can add before / after section if you're changing some behavior.

### Before

### After

-->

## Test code and steps to reproduce

Run the Example or FabricExample app and change source in `apps/App.tsx`
file.

## Checklist

- [x] Updated documentation: <!-- For adding new props to native-stack
-->
- [x]
https://github.com/software-mansion/react-native-screens/blob/main/guides/CONTRIBUTING.md
- [x] Ensured that CI passes

---------

Co-authored-by: maciekstosio <maciekstosio@icloud.com>
Co-authored-by: Kacper Kafara <kacper.kafara@swmansion.com>
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.

3 participants