Skip to content

Commit 3767ef6

Browse files
committed
Fixed Android compilation error
("'setIOsSleepBeforeStarting' overrides nothing")
1 parent 6110069 commit 3767ef6

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

android/src/newarch/java/com/rncamerakit/CKCameraManager.kt

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,6 @@ class CKCameraManager(context: ReactApplicationContext) : SimpleViewManager<CKCa
155155
}
156156

157157
// Methods only available on iOS
158-
override fun setIOsSleepBeforeStarting(view: CKCamera?, value: Int) = Unit
159-
160158
override fun setRatioOverlay(view: CKCamera?, value: String?) = Unit
161159

162160
override fun setRatioOverlayColor(view: CKCamera?, value: Int?) = Unit

src/specs/CameraNativeComponent.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ import type {
1010
Int32,
1111
WithDefault
1212
} from 'react-native/Libraries/Types/CodegenTypes';
13+
14+
// While this import is deprecated, official docs still shows this as valid
15+
// and the alternative doesn't work (import doesn't exist for this RN version)
1316
import codegenNativeComponent from 'react-native/Libraries/Utilities/codegenNativeComponent';
1417

1518
type OnReadCodeData = {

0 commit comments

Comments
 (0)