Code: Select all
npx @react-native-community/cli@latest init Chatwithpdf< /code> < /p>
Hier ist das Repository: chatwithpdf github repo < /p>
Jetzt möchte ich zusätzliche Funktionalität hinzufügen, wie z. folgende Fehler: < /p>
TypeError: Cannot read property 'NativeModule' of undefined
Es scheint, als würde mir eine Konfiguration im Zusammenhang mit nativen Modulen fehlen.
Code: Select all
npm install --legacy-peer-deps
Start Metro:
Code: Select all
npm startFühren Sie die Android -App aus:
Code: Select all
npm run android
Frage:
Welche Konfiguration oder Einrichtung fehlt mir, um Android -native Module in meinem nativen React -Projekt ordnungsgemäß zu verwenden?