This repository is structured as follows:
applications/native - demo Expo 32 app
applications/react - clone of the DBS reader web app
core/utils - test utils; this is where the shared code will live
The root package.json needs the following to work with Yarn workspaces:
{
"private": true,
"workspaces": [
"core/*",
"applications/*"
]
}
- Added
next-plugin-transpile-modulesto package.json dependencies - Added
next-plugin-transpile-modulesconfig to next.config.js - Updated
namein package.json to"name": "@bibleis/react" - Added
"@bibleis/utils": "*"to package.json dependencies - Created test.js in
core/utilswith sample export value - Pulled test.js value into
app/containers/Verses/index.js
- Added
AppEntry.jsinto actual project (due to issues with the one in.exponot bundling correctly) - Updated
mainin package.json to point to the AppEntry.js you created:"main": "./AppEntry.js" - Added
get-yarn-workspacesdev dependency to package.json - Added
@babel/runtimedependency to package.json (note: you may need to runnpm start --reset-cacheafter performing this step if you're getting an error about@babel/runtime/helpers/interopRequireDefault) - Added nohoist config to package:json:
"workspaces": {
"nohoist": [
"**"
]
}
- Add
"@bibleis/utils": "*"to package.json dependencies - Pulled test.js value into
app/screens/HomeScreen.js