-
Notifications
You must be signed in to change notification settings - Fork 20
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
Convert Example Apps to TypeScript and Add Expo Support #913
base: master
Are you sure you want to change the base?
Conversation
2d57a02
to
5189711
Compare
79b7a27
to
c0193dd
Compare
f70369e
to
85e9952
Compare
85e9952
to
1cb5a12
Compare
3932b3f
to
6534615
Compare
6534615
to
ab4dc7c
Compare
5cbb82b
to
60266d1
Compare
60266d1
to
9d4abfe
Compare
9df8a13
to
a162b60
Compare
2131108
to
482ad81
Compare
node_modules | ||
apps |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think we should keep eslint for apps.
We can follow our projects that already used TypeScript: https://github.com/mybigday/llama.rn/blob/f35545b92241d8cc9ee2b22b5ca4c02b395db9bb/package.json#L127-L203
Then the package also needs to be rewritten in TypeScript since it uses Flow, and it may need a build script.
This PR introduces the following updates to the react-native-external-display library:
Conversion of Example Apps to TypeScript:
The example apps have been fully converted from JavaScript to TypeScript, providing better type safety and improving the overall developer experience when working with the examples.
Added Support for Expo:
The example apps have been updated to run within the Expo environment, making it easier for developers using Expo to integrate and test the external display functionality. This PR deletes all the native Objective-C and Java code, allowing Expo to auto-generate the required native code. The iPad example applies its changes via a custom Expo plugin, streamlining the integration with Expo's ecosystem.
Migration to Yarn 4.5:
The project now uses Yarn 4.5 to manage dependencies, bringing improvements in dependency resolution, performance, and workspace handling.
GitHub Actions Update for Expo:
This PR also includes updates to the GitHub Actions configuration. The workflow has been updated to use the new Expo versions of the example apps for continuous integration (CI). These changes ensure that the build and testing pipelines reflect the new Expo-based project setup, including the removal of native code and the auto-generation of necessary build files via Expo.
Rationale:
These changes aim to: