expo - 自定义库的输入/自动完成建议未出现在 Expo 项目中
问题描述
我用 Typescript 和 React Native 制作了一个库,并在 npm 上发布了它,但是当我在任何 expo 项目中使用它时,我没有收到任何打字或自动完成建议。谁能告诉我解决这个问题的步骤?另外,我使用 Callstack react-native-builder-bob 来设置这个库。
我现在的 tsconfig 是:
{
"compilerOptions": {
"baseUrl": ".",
"declaration": true,
"paths": {
"my-library": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
"esModuleInterop": true,
"importsNotUsedAsValues": "error",
"forceConsistentCasingInFileNames": true,
"jsx": "react",
"lib": ["esnext", "dom"],
"module": "esnext",
"moduleResolution": "node",
"noFallthroughCasesInSwitch": true,
"noImplicitReturns": true,
"noImplicitUseStrict": false,
"noStrictGenericChecks": false,
"noUnusedLocals": true,
"noUnusedParameters": true,
"resolveJsonModule": true,
"skipLibCheck": true,
"strict": true,
"target": "esnext"
}
}
解决方案
推荐阅读
- regex - Powershell 捕获文件中的文本模式并替换模式中的字符
- typescript - 用于功能道具的可选 Typescript 通用
- java - 休眠和测试容器
- python - 始终在固定位置获取字典数据
- ms-word - VBS:Word.Documents.Open 在无人参与的情况下失败
- android - Firebase 根据导入的细分定位用户
- javascript - Javascript 确切的词,但不是它的否定词
- python - Python中一维数据中的聚类图
- javascript - 在另一个数组中查找一个值
- python-2.7 - Boto AttributeError:“模块”对象没有属性“HTTPSConnection”