Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Objective
This PR fixes various issues that I encountered when trying to run the example app.
Resolves #146
Description
Add native peer dependencies to example project
For react-native's native module auotlinking to function properly, all native dependencies must be direct dependencies of the app. Native dependencies should never be transitive dependencies.
Also, note that the dependency versions don't match the ones in packages/zeego/package.json. This is because this example project doesn't actually depend on the workspace version of zeego, it depends on 3.0.0-alt.1 which depends on these versions of the native packages.
What really should be done, but which I ran out of time to do, is to remove the yarn.lock in this example project directory and have this example app depend on 'workspace:*' version of zeego so that the monorepo is in a healthy state and this example app runs the code that is in the monorepo for zeegoo. I attempted to do this and I encountered build errors compiling expo-modules.
There really should only be 1 yarn.lock in a yarn monorepo.
Fix mismatched dev/peer dependencies in package/zeego
Native packages should have the exact same value in devDependencies as they do in peerDependencies.
Fix yarn install making working directory dirty
Running yarn install should not cause the working directory to have
uncommitted changes.
Remove
examples/expo/.yarn/install-stage.gz
. This file should not be checked into git. In fact, it shouldn't exist because there shouldn't be multiple yarn.lock files in a monorepo.I attempted to resolve this, but ran into more issues than I have time to fix, so instead I'll just remove this so that yarn install at least does not cause there to be uncommitted changes in the working directory.
Commit the change to packages/zeego/package.json
yarn install sorts the packages in package.json, so commit these changes.