File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
packages/powersync-op-sqlite Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -85,10 +85,11 @@ More info can be found in the [OP-SQLite docs](https://op-engineering.github.io/
8585Example usage:
8686
8787``` ts
88+ import { getDylibPath } from ' @op-engineering/op-sqlite' ;
89+
8890let libPath: string
8991if (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}
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ import {
1515} from '@op-engineering/op-sqlite' ;
1616import Lock from 'async-lock' ;
1717import { OPSQLiteConnection } from './OPSQLiteConnection' ;
18- import { NativeModules , Platform } from 'react-native' ;
18+ import { Platform } from 'react-native' ;
1919import { SqliteOptions } from './SqliteOptions' ;
2020import { getBundlePath } from '..' ;
2121
You can’t perform that action at this time.
0 commit comments