margelo / margelo/react-native-nitro-sqlite

NitroSQLite.loadFile is not a function (it is undefined)

Open
#94 0 comments 2 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

triage:needs-reproduction
Dominant language
C
Stars
565
Forks
53
Avg merge
1d 21h
Merged PRs (30d)
18

Description

When I try to use LoadFile and loadFileAsync I get an error .NitroSQLite.loadFile is not a function (it is undefined)

Example:

import { NitroSQLite } from 'react-native-nitro-sqlite';

NitroSQLite.loadFileAsync('database', 'path');
// or
NitroSQLite.loadFile('database', 'path');

Versions

    "react-native": "0.76.3",
    "react-native-nitro-modules": "^0.18.2",
    "react-native-nitro-sqlite": "^9.1.0",

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by checking the NitroSQLite exports for loadFile and loadFileAsync and compare them with the 9.1.0 package API. Reproduce the example using the listed React Native and Nitro Modules versions; done when the load-file behavior is clarified and the reported undefined-function error is resolved or documented as unsupported.

Written by the indexing model from the issue text.

Assessment

Tech stack
react-native, sqlite
Domain
database, mobile
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.