File tree 1 file changed +10
-1
lines changed
1 file changed +10
-1
lines changed Original file line number Diff line number Diff line change @@ -194,7 +194,7 @@ export function CameraPage({ navigation }: Props): React.ReactElement {
194
194
195
195
return (
196
196
< View style = { styles . container } >
197
- { device != null && (
197
+ { device != null ? (
198
198
< PinchGestureHandler onGestureEvent = { onPinchGesture } enabled = { isActive } >
199
199
< Reanimated . View onTouchEnd = { onFocusTap } style = { StyleSheet . absoluteFill } >
200
200
< TapGestureHandler onEnded = { onDoubleTap } numberOfTaps = { 2 } >
@@ -232,6 +232,10 @@ export function CameraPage({ navigation }: Props): React.ReactElement {
232
232
</ TapGestureHandler >
233
233
</ Reanimated . View >
234
234
</ PinchGestureHandler >
235
+ ) : (
236
+ < View style = { styles . emptyContainer } >
237
+ < Text style = { styles . text } > Your phone does not have a Camera.</ Text >
238
+ </ View >
235
239
) }
236
240
237
241
< CaptureButton
@@ -313,4 +317,9 @@ const styles = StyleSheet.create({
313
317
fontWeight : 'bold' ,
314
318
textAlign : 'center' ,
315
319
} ,
320
+ emptyContainer : {
321
+ flex : 1 ,
322
+ justifyContent : 'center' ,
323
+ alignItems : 'center' ,
324
+ } ,
316
325
} )
You can’t perform that action at this time.
0 commit comments