Skip to content

Commit 6ef0f47

Browse files
committed
chore: update readme
1 parent 1529187 commit 6ef0f47

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

packages/powersync-op-sqlite/README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,11 @@ More info can be found in the [OP-SQLite docs](https://op-engineering.github.io/
8585
Example usage:
8686

8787
```ts
88+
import { getDylibPath } from '@op-engineering/op-sqlite';
89+
8890
let libPath: string
8991
if (Platform.OS === 'ios') {
90-
const bundlePath: string = getBundlePath();
91-
libPath = `${bundlePath}/Frameworks/powersync-sqlite-core.framework/powersync-sqlite-core`;
92+
libPath = get_the_path_to_your_library
9293
} else {
9394
libPath = 'libpowersync';
9495
}

packages/powersync-op-sqlite/src/db/OPSqliteAdapter.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ import {
1515
} from '@op-engineering/op-sqlite';
1616
import Lock from 'async-lock';
1717
import { OPSQLiteConnection } from './OPSQLiteConnection';
18-
import { NativeModules, Platform } from 'react-native';
18+
import { Platform } from 'react-native';
1919
import { SqliteOptions } from './SqliteOptions';
2020
import { getBundlePath } from '..';
2121

0 commit comments

Comments
 (0)