Skip to content

Commit 62cad84

Browse files
committed
Revert
1 parent e76e971 commit 62cad84

File tree

8 files changed

+7
-39
lines changed

8 files changed

+7
-39
lines changed

babel.config.js

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@ module.exports = {
22
presets: ['module:@react-native/babel-preset', 'nativewind/babel'],
33
plugins: [
44
'react-native-reanimated/plugin',
5-
['inline-import', { extensions: ['.sql'] }],
65
[
76
'module-resolver',
87
{

bun.lockb

-22.1 KB
Binary file not shown.

drizzle.config.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

metro.config.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ const config = mergeConfig(defaultConfig, {
1616
},
1717
resolver: {
1818
assetExts: [...assetExts.filter((ext) => ext !== 'svg'), 'lottie'],
19-
sourceExts: [...sourceExts, 'svg', 'sql'],
19+
sourceExts: [...sourceExts, 'svg'],
2020
},
2121
})
2222

package.json

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,9 @@
1616
"install-apk": "adb install -r android/app/build/outputs/apk/debug/app-arm64-v8a-release.apk",
1717
"install-release-apk": "adb install -r android/app/build/outputs/apk/release/app-arm64-v8a-release.apk",
1818
"prettier": "prettier --check .",
19-
"prettier:fix": "prettier --write .",
20-
"db": "drizzle-kit generate"
19+
"prettier:fix": "prettier --write ."
2120
},
2221
"dependencies": {
23-
"@op-engineering/op-sqlite": "^11.2.13",
2422
"@react-native-clipboard/clipboard": "^1.15.0",
2523
"@react-native-community/netinfo": "^11.4.1",
2624
"@react-native-masked-view/masked-view": "^0.3.2",
@@ -30,7 +28,6 @@
3028
"@shopify/react-native-skia": "^1.5.8",
3129
"@tanstack/react-query": "^5.62.12",
3230
"clsx": "^2.1.1",
33-
"drizzle-orm": "^0.38.3",
3431
"hono": "^4.6.11",
3532
"lottie-react-native": "^7.1.0",
3633
"nativewind": "^4.1.23",
@@ -44,16 +41,17 @@
4441
"react-native-reanimated": "3.16.3",
4542
"react-native-safe-area-context": "^5.0.0",
4643
"react-native-screens": "^4.4.0",
44+
"react-native-sqlite-storage": "^6.0.1",
4745
"react-native-svg": "^15.9.0",
4846
"tailwind-merge": "^2.6.0",
4947
"zod": "^3.24.1",
5048
"zustand": "^5.0.2"
5149
},
5250
"devDependencies": {
51+
"tailwindcss": "^3.4.16",
5352
"@babel/core": "^7.25.2",
5453
"@babel/preset-env": "^7.25.3",
5554
"@babel/runtime": "^7.25.0",
56-
"babel-plugin-inline-import": "^3.0.0",
5755
"@react-native-community/cli": "15.0.1",
5856
"@react-native-community/cli-platform-android": "15.0.1",
5957
"@react-native-community/cli-platform-ios": "15.0.1",
@@ -65,14 +63,13 @@
6563
"@types/react-test-renderer": "^18.0.0",
6664
"babel-jest": "^29.6.3",
6765
"babel-plugin-module-resolver": "^5.0.2",
68-
"drizzle-kit": "^0.30.1",
6966
"eslint": "^8.19.0",
7067
"jest": "^29.6.3",
7168
"prettier": "^3.3.3",
7269
"prettier-plugin-tailwindcss": "^0.6.9",
7370
"react-native-svg-transformer": "^1.5.0",
7471
"react-test-renderer": "18.3.1",
75-
"tailwindcss": "^3.4.16",
72+
"@types/react-native-sqlite-storage": "^6.0.5",
7673
"typescript": "5.0.4"
7774
},
7875
"engines": {

src/db/schema.ts

Lines changed: 0 additions & 8 deletions
This file was deleted.

src/screens/Home/HomeScreen.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ function Shortcuts({ navigation }: { navigation: StackNav }) {
114114
<Medium className='text-xs text-gray-700 dark:text-gray-300'>Shortcut 1</Medium>
115115
</TouchableOpacity>
116116
<TouchableOpacity
117-
onPress={() => navigation.navigate('Test')}
117+
onPress={() => navigation.navigate('Story')}
118118
style={[hw, styles.shadow, styles.center]}
119119
className='w-1/2 rounded-2xl bg-white dark:bg-zinc-900'
120120
>

src/screens/Test.tsx

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -6,21 +6,9 @@ import { SettOption } from '@components/Settings/SettOption'
66
import SettText from '@components/Settings/SettText'
77
import SettWrapper from '@components/Settings/SettWrapper'
88
import type { NavProp } from '@utils/types'
9-
import React, { useEffect } from 'react'
10-
11-
import { open } from '@op-engineering/op-sqlite'
12-
import { drizzle } from 'drizzle-orm/op-sqlite'
13-
14-
const opsqlite = open({
15-
name: 'myDB',
16-
})
17-
const db = drizzle(opsqlite)
9+
import React from 'react'
1810

1911
export default function Test({ navigation }: NavProp) {
20-
useEffect(() => {
21-
console.log('db', db)
22-
}, [db])
23-
2412
return (
2513
<>
2614
<SettWrapper navigation={navigation} title='Test Screen'>

0 commit comments

Comments
 (0)