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

Unify example apps #4288

Merged
merged 51 commits into from
Mar 29, 2023
Merged

Unify example apps #4288

merged 51 commits into from
Mar 29, 2023

Conversation

tomekzaw
Copy link
Member

@tomekzaw tomekzaw commented Mar 27, 2023

Summary

Note: This is a huge PR, please review the commits one-by-one.

Changes

  • Create app package that holds the common code for all example apps + add CI checks
  • Move all examples from Example, FabricExample and WebExample to app directory
  • Use App.tsx from app directory in Example, FabricExample and WebExample apps
  • Use export default function wherever possible
  • Use NativeStackNavigationProp type instead of StackNavigationProp in SET examples and remove dependency
  • Remove test, test-suite and e2e directories and Detox configuration
  • Regenerate Example app using npx react-native@next ReanimatedExample --version 0.71.3 --skip-install
  • Use autolinking instead of manual linking in Example app (Android & iOS) like in FabricExample
  • Use original TypeScript and ESLint configuration in Example and FabricExample apps
  • Move react-native-reanimated-tests.tsx from FabricExample to __typetests__ (as in react-native repo)

TODO

  • Check apps in release mode

Next steps

  • Make example list hierarchical
  • WebExample takes too long to bundle
  • Don't return to home screen after fast refresh on web

Test plan

Check if Example, FabricExample and WebExample work properly.

@tomekzaw tomekzaw marked this pull request as ready for review March 29, 2023 14:03
@tomekzaw tomekzaw added this pull request to the merge queue Mar 29, 2023
Merged via the queue into main with commit c5ea612 Mar 29, 2023
@tomekzaw tomekzaw deleted the @tomekzaw/unify-example-apps branch March 29, 2023 20:00
@tomekzaw tomekzaw mentioned this pull request Mar 29, 2023
tomekzaw added a commit that referenced this pull request Mar 29, 2023
## Summary

This PR updates `yarn.lock` after merging #4288 without changes from
#4301.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->
@tomekzaw tomekzaw mentioned this pull request Mar 29, 2023
6 tasks
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
<!-- Thanks for submitting a pull request! We appreciate you spending
the time to work on these changes. Please follow the template so that
the reviewers can easily understand what the code changes affect. -->

## Summary

Note: This is a huge PR, please review the commits one-by-one.

### Changes

- Create app package that holds the common code for all example apps +
add CI checks
- Move all examples from Example, FabricExample and WebExample to app
directory
- Use `App.tsx` from app directory in Example, FabricExample and
WebExample apps
- Use `export default function` wherever possible
- Use `NativeStackNavigationProp` type instead of `StackNavigationProp`
in SET examples and remove dependency
- Remove test, test-suite and e2e directories and Detox configuration
- Regenerate Example app using `npx react-native@next ReanimatedExample
--version 0.71.3 --skip-install`
- Use autolinking instead of manual linking in Example app (Android &
iOS) like in FabricExample
- Use original TypeScript and ESLint configuration in Example and
FabricExample apps
- Move `react-native-reanimated-tests.tsx` from FabricExample to
`__typetests__` (as in react-native repo)

### TODO

- [ ] Check apps in release mode

### Next steps

- [ ] Make example list hierarchical
- [ ] WebExample takes too long to bundle
- [ ] Don't return to home screen after fast refresh on web

## Test plan

Check if Example, FabricExample and WebExample work properly.
fluiddot pushed a commit to wordpress-mobile/react-native-reanimated that referenced this pull request Jun 5, 2023
## Summary

This PR updates `yarn.lock` after merging software-mansion#4288 without changes from
software-mansion#4301.

## Test plan

<!-- Provide a minimal but complete code snippet that can be used to
test out this change along with instructions how to run it and a
description of the expected behavior. -->
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