@@ -101,7 +101,7 @@ const Settings = ({ navigation, route }) => {
101101 setTrackScreensEnabled ( initialConfig . trackScreens ) ;
102102 setTrackDeviceAttributesEnabled ( initialConfig . trackDeviceAttributes ) ;
103103 setDebugModeEnabled ( initialConfig . debugMode ) ;
104- setScreenView ( initialConfig . screenViewUse ) ;
104+ setScreenView ( initialConfig . screenViewUse ) ;
105105 setAppLifecycleEventTrackingEnabled ( initialConfig ?. trackAppLifecycleEvents ) ;
106106 } , [ initialCdpApiKey , initialConfig , initialSiteId ] ) ;
107107
@@ -245,32 +245,53 @@ const Settings = ({ navigation, route }) => {
245245 </ View >
246246 < View style = { settingsStyles . section } >
247247 < Text style = { settingsStyles . sectionLabel } > ScreenView Use</ Text >
248- < View style = { [ settingsStyles . buttonGroup , { backgroundColor : '#F0F0F5' , borderRadius : 8 } ] } >
248+ < View
249+ style = { [
250+ settingsStyles . buttonGroup ,
251+ { backgroundColor : '#F0F0F5' , borderRadius : 8 } ,
252+ ] }
253+ >
249254 < TouchableOpacity
250255 style = { [
251256 settingsStyles . segmentButton ,
252257 { flex : 1 } ,
253- screenView === ScreenView . All . toString ( ) && { backgroundColor : '#4B48C9' }
258+ screenView === ScreenView . All . toString ( ) && {
259+ backgroundColor : '#4B48C9' ,
260+ } ,
254261 ] }
255262 onPress = { ( ) => setScreenView ( ScreenView . All . toString ( ) ) }
256263 >
257- < Text style = { [
258- settingsStyles . segmentButtonText ,
259- screenView === ScreenView . All . toString ( ) && { color : 'white' }
260- ] } > All</ Text >
264+ < Text
265+ style = { [
266+ settingsStyles . segmentButtonText ,
267+ screenView === ScreenView . All . toString ( ) && {
268+ color : 'white' ,
269+ } ,
270+ ] }
271+ >
272+ All
273+ </ Text >
261274 </ TouchableOpacity >
262275 < TouchableOpacity
263276 style = { [
264277 settingsStyles . segmentButton ,
265278 { flex : 1 } ,
266- screenView === ScreenView . InApp . toString ( ) && { backgroundColor : '#4B48C9' }
279+ screenView === ScreenView . InApp . toString ( ) && {
280+ backgroundColor : '#4B48C9' ,
281+ } ,
267282 ] }
268283 onPress = { ( ) => setScreenView ( ScreenView . InApp . toString ( ) ) }
269284 >
270- < Text style = { [
271- settingsStyles . segmentButtonText ,
272- screenView === ScreenView . InApp . toString ( ) && { color : 'white' }
273- ] } > InApp</ Text >
285+ < Text
286+ style = { [
287+ settingsStyles . segmentButtonText ,
288+ screenView === ScreenView . InApp . toString ( ) && {
289+ color : 'white' ,
290+ } ,
291+ ] }
292+ >
293+ InApp
294+ </ Text >
274295 </ TouchableOpacity >
275296 </ View >
276297 </ View >
0 commit comments