Skip to content

Commit c844646

Browse files
committed
refactor: move NativeExify to specs/NativeExifyModule
1 parent 0b072cd commit c844646

4 files changed

Lines changed: 4 additions & 3 deletions

File tree

android/src/main/java/com/lodev09/exify/ExifyModule.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ private const val MEDIA_LOCATION_REQUEST_CODE = 4209
2323

2424
class ExifyModule(
2525
reactContext: ReactApplicationContext,
26-
) : NativeExifySpec(reactContext) {
26+
) : NativeExifyModuleSpec(reactContext) {
2727
private val context = reactContext
2828

2929
override fun read(
@@ -211,6 +211,6 @@ class ExifyModule(
211211
}
212212

213213
companion object {
214-
const val NAME = NativeExifySpec.NAME
214+
const val NAME = NativeExifyModuleSpec.NAME
215215
}
216216
}

example/src/App.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export default function App() {
4747
GPSTimeStamp: '10:10:10',
4848
GPSDateStamp: '2024:10:10',
4949
GPSDOP: 5.0,
50+
GPSHPositioningError: '10.0',
5051
GPSImgDirection: 180.5,
5152
GPSImgDirectionRef: 'T',
5253
UserComment: 'Exif updated via @lodev09/react-native-exify',

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import Exify from './NativeExify';
1+
import Exify from './specs/NativeExifyModule';
22
import type { ExifTags, ExifyWriteResult } from './types';
33

44
/**

0 commit comments

Comments
 (0)