created the new npm and react-native-textInputBox for learning purpose and try to run that multiply in the other Project getting the error
まだ誰も着手していません。
評価
- 難易度
- 4/5
- 見積もり時間
- 3〜5日
- 初心者へのやさしさ
- 30/100
- issue の種類
- バグ
- 明瞭さ
- おおむね明確
- 活発さ
- 停滞
- 技術スタック
- javascript, react-native, typescript
調査の方向性
まず、multiplyのインポートを使用して公開されているreact-native-textinputbox 0.1.0の例を再現し、lib/commonjs/index.jsとlib/typescript/module/src/index.d.tsを確認します。最初に生成されたパッケージとネイティブモジュールの登録を確認してください。multiplyがTextinputboxエラーなしで実行され、TypeScriptが報告されたモジュール設定で宣言ファイルを解決できれば完了です。
索引モデルが issue の本文から書いたものです。
説明
I created a new npm package react-native-textinputbox for learning purposes using the create-react-native-library tool. After publishing the library, I tried using it in another project and encountered an issue when calling the multiply function from the library. I'm seeing the following error:
Invariant Violation: TurboModuleRegistry.getEnforcing(...): 'Textinputbox' could not be found. Verify that a module by this name is registered in the native binary.
Could not find a declaration file for module 'react-native-textinputbox'. '.../node_modules/react-native-textinputbox/lib/commonjs/index.js' implicitly has an 'any' type.
There are types at '.../node_modules/react-native-textinputbox/lib/typescript/module/src/index.d.ts', but this result could not be resolved under your current 'moduleResolution' setting.
there is not typeScript Support as well
Steps to Reproduce:
Create a new npm package react-native-textinputbox using create-react-native-library.
Publish the package to npm.
Install the package in another React Native project.
Import the multiply function from react-native-textinputbox:
javascript
Copy code
import { multiply } from 'react-native-textinputbox';
Call the multiply function like so:
javascript
Copy code
const result = multiply(3, 7);
console.log(result);
Run the app and observe the errors.
Expected Behavior: The multiply function should work as expected without throwing errors, and the TypeScript declaration files should resolve correctly.
Environment:
react-native-textinputbox: 0.1.0
React Native: 0.76.5
TypeScript: 0.76.5
Expo (if applicable): 2.0.53
Possible Solution:
the default example should work as normal comes with the code and not ts support.
it should have the ts support.
- 主要言語
- JavaScript
- スター
- 13.2k
- フォーク
- 1.3k
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
expo/create-react-native-app のほかの issue
-
難易度 3/5 1〜2日 初心者へのやさしさ 35/100
expo/create-react-native-app#947 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 10/100
expo/create-react-native-app#946 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
expo/create-react-native-app#931 · コメント 14 件 ·
-
難易度 3/5 1〜2日 初心者へのやさしさ 25/100
expo/create-react-native-app#929 ·
-
難易度 4/5 3〜5日 初心者へのやさしさ 32/100
expo/create-react-native-app#927 · コメント 2 件 · リアクション 1 件 ·
expo/create-react-native-app の issue をすべて見る
似ている issue
-
bug data-types
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
ClickHouse/clickhouse-js#1293 ·
メンテナーはふだん 1 日以内に返信
-
area: tests help wanted size/s
難易度 2/5 1〜3時間 初心者へのやさしさ 92/100
DahanItamar/DockNest#368 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
-
good first issue
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100