Expo (v52) uses an entry that's inside node_modules
default package.json
{
"main": "expo-router/entry",
}
when changing that to a custom entry file
modified package.json
{
"main": "index.js",
}
./index.js
import './node_modules/expo-router/entry';
// register events like
// https://github.com/transistorsoft/react-native-background-geolocation/issues/1582#issuecomment-1307681914
Knip starts reporting that basically everything in the project directory is not used (app/
,hooks/
...etc).
configuring entry
to index.js
doesn't seem to help
knip.json
{
"entry": ["index.js"],
"ignore": [
"app.json"
],
"ignoreDependencies": [
"react-native-background-fetch",
"@react-navigation/native-stack"
]
}
Any idea how to handle this?
Pay now to fund the work behind this issue.
Get updates on progress being made.
Maintainer is rewarded once the issue is completed.
You're funding impactful open source efforts
You want to contribute to this effort
You want to get funding like this too