File tree Expand file tree Collapse file tree
apps/mobile/src/features/connection Expand file tree Collapse file tree Original file line number Diff line number Diff line change 11import { ScreenScrollView as ScrollView } from "../../components/ScreenScrollView" ;
22import { CameraView , useCameraPermissions } from "expo-camera" ;
3- import { NativeHeaderToolbar , NativeStackScreenOptions } from "../../native/StackHeader" ;
43import {
54 StackActions ,
65 useNavigation ,
@@ -194,7 +193,8 @@ export function ConnectionsNewRouteScreen({
194193 actions = { [
195194 {
196195 accessibilityLabel : showScanner ? "Close scanner" : "Scan QR code" ,
197- icon : showScanner ? "xmark" : "camera" ,
196+ icon : showScanner ? "xmark" : Platform . OS === "ios" ? "qrcode.viewfinder" : "camera" ,
197+ tintColor : headerIconColor ,
198198 onPress : ( ) => {
199199 if ( showScanner ) {
200200 closeScanner ( ) ;
@@ -205,26 +205,6 @@ export function ConnectionsNewRouteScreen({
205205 } ,
206206 ] }
207207 >
208- < NativeStackScreenOptions
209- options = { { title : showScanner ? "Scan QR Code" : "Add Environment" } }
210- />
211- { Platform . OS !== "android" ? (
212- < NativeHeaderToolbar placement = "right" >
213- < NativeHeaderToolbar . Button
214- icon = { showScanner ? "xmark" : "qrcode.viewfinder" }
215- onPress = { ( ) => {
216- if ( showScanner ) {
217- closeScanner ( ) ;
218- } else {
219- void openScanner ( ) ;
220- }
221- } }
222- separateBackground
223- tintColor = { headerIconColor }
224- />
225- </ NativeHeaderToolbar >
226- ) : null }
227-
228208 < ScrollView
229209 contentInsetAdjustmentBehavior = "automatic"
230210 showsVerticalScrollIndicator = { false }
You can’t perform that action at this time.
0 commit comments