Skip to content
This repository was archived by the owner on Jun 28, 2024. It is now read-only.

Commit 89fdbb1

Browse files
committed
code style updates
1 parent 122ee64 commit 89fdbb1

File tree

3 files changed

+13
-13
lines changed

3 files changed

+13
-13
lines changed

example/navigators/AppNavigator.tsx

+8-8
Original file line numberDiff line numberDiff line change
@@ -45,23 +45,23 @@ const TabNavigator = () => {
4545
<Tab.Navigator
4646
screenOptions={{ headerShown: false, tabBarHideOnKeyboard: true }}>
4747
<Tab.Screen
48-
name="ConnectWithToken"
49-
component={ConnectWithTokenScreen}
48+
name="ConnectWithRoomManager"
49+
component={ConnectWithRoomManagerScreen}
5050
options={{
51-
tabBarLabel: 'Use Token',
51+
tabBarLabel: 'Use Room Manager',
5252
tabBarActiveTintColor: BrandColors.darkBlue100,
5353
tabBarInactiveTintColor: AdditionalColors.grey60,
54-
tabBarIcon: tabBarIcon('ticket'),
54+
tabBarIcon: tabBarIcon('room-service'),
5555
}}
5656
/>
5757
<Tab.Screen
58-
name="ConnectWithRoomManager"
59-
component={ConnectWithRoomManagerScreen}
58+
name="ConnectWithToken"
59+
component={ConnectWithTokenScreen}
6060
options={{
61-
tabBarLabel: 'Use Room Manager',
61+
tabBarLabel: 'Use Token',
6262
tabBarActiveTintColor: BrandColors.darkBlue100,
6363
tabBarInactiveTintColor: AdditionalColors.grey60,
64-
tabBarIcon: tabBarIcon('room-service'),
64+
tabBarIcon: tabBarIcon('ticket'),
6565
}}
6666
/>
6767
</Tab.Navigator>

example/screens/ConnectWithTokenScreen.tsx

+2-2
Original file line numberDiff line numberDiff line change
@@ -70,13 +70,13 @@ const ConnectScreen = ({ navigation }: Props) => {
7070
onChangeText={onChangeFishjamUrl}
7171
value={fishjamUrl}
7272
accessibilityLabel={URL_INPUT}
73-
placeholder="Fishjam url"
73+
placeholder="Fishjam URL"
7474
/>
7575
<TextInput
7676
onChangeText={onChangePeerToken}
7777
value={peerToken}
7878
accessibilityLabel={TOKEN_INPUT}
79-
placeholder="Peer token"
79+
placeholder="Peer Token"
8080
/>
8181
<Button
8282
title="Connect"

example/screens/RoomScreen.tsx

+3-3
Original file line numberDiff line numberDiff line change
@@ -107,12 +107,12 @@ const RoomScreen = ({ navigation, route }: Props) => {
107107
accessibilityLabel={DISCONNECT_BUTTON}
108108
/>
109109
<InCallButton
110-
iconName={!isMicrophoneOn ? 'microphone-off' : 'microphone'}
110+
iconName={isMicrophoneOn ? 'microphone' : 'microphone-off'}
111111
onPress={toggleMicrophone}
112112
accessibilityLabel={TOGGLE_MICROPHONE_BUTTON}
113113
/>
114114
<InCallButton
115-
iconName={!isCameraOn ? 'camera-off' : 'camera'}
115+
iconName={isCameraOn ? 'camera' : 'camera-off'}
116116
onPress={toggleCamera}
117117
accessibilityLabel={TOGGLE_CAMERA_BUTTON}
118118
/>
@@ -122,7 +122,7 @@ const RoomScreen = ({ navigation, route }: Props) => {
122122
accessibilityLabel={SWITCH_CAMERA_BUTTON}
123123
/>
124124
<InCallButton
125-
iconName={isScreencastOn ? 'share-off' : 'share'}
125+
iconName={isScreencastOn ? 'share' : 'share-off'}
126126
onPress={onToggleScreenCast}
127127
accessibilityLabel={SHARE_SCREEN_BUTTON}
128128
/>

0 commit comments

Comments
 (0)