Skip to content

Commit

Permalink
- Bump react native version
Browse files Browse the repository at this point in the history
- Remove use of nativeCallSyncHook()
- Upgrade ruby version
  • Loading branch information
mugikhan committed Sep 18, 2024
1 parent 58d5038 commit d4d27b5
Show file tree
Hide file tree
Showing 5 changed files with 1,693 additions and 1,166 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.6.10
3.3.0
2 changes: 1 addition & 1 deletion Gemfile
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
source 'https://rubygems.org'
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.6'
ruby '3.3.0'
gem 'cocoapods', '~> 1.11', '>= 1.11.3'
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,10 +49,10 @@
"homepage": "https://github.com/powersync-ja/react-native-quick-sqlite#readme",
"devDependencies": {
"@changesets/cli": "^2.26.2",
"prettier": "^3.2.4",
"prettier": "^3.3.3",
"react": "18.2.0",
"react-native": "0.71.0",
"react-native-builder-bob": "^0.18.2",
"react-native": "0.74.5",
"react-native-builder-bob": "^0.30.1",
"typescript": "^4.8.4"
},
"peerDependencies": {
Expand Down
2 changes: 1 addition & 1 deletion src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ if (global.__QuickSQLiteProxy == null) {
}

// Check if we are running on-device (JSI)
if (global.nativeCallSyncHook == null || QuickSQLiteModule.install == null) {
if (QuickSQLiteModule.install == null) {
throw new Error(
'Failed to install react-native-quick-sqlite: React Native is not running on-device. QuickSQLite can only be used when synchronous method invocations (JSI) are possible. If you are using a remote debugger (e.g. Chrome), switch to an on-device debugger (e.g. Flipper) instead.'
);
Expand Down
Loading

0 comments on commit d4d27b5

Please sign in to comment.