Skip to content

Commit e41f73a

Browse files
authored
fix: make android provide overrides for firebase (#2982)
1 parent 922b693 commit e41f73a

File tree

1 file changed

+12
-14
lines changed

1 file changed

+12
-14
lines changed

examples/SampleApp/src/components/SecretMenu.tsx

Lines changed: 12 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -139,7 +139,7 @@ export const SecretMenu = ({
139139
const notificationConfigItems = useMemo(
140140
() => [
141141
{ label: 'Firebase', name: 'rn-fcm', id: 'firebase' },
142-
{ label: 'APNs', name: 'APN', id: 'apn' },
142+
...(isAndroid ? [] : [{ label: 'APNs', name: 'APN', id: 'apn' }]),
143143
],
144144
[],
145145
);
@@ -172,7 +172,7 @@ export const SecretMenu = ({
172172
<View
173173
style={[
174174
menuDrawerStyles.menuItem,
175-
{ opacity: isAndroid ? 0.3 : 1, alignItems: 'flex-start' },
175+
{ alignItems: 'flex-start' },
176176
]}
177177
>
178178
<Notification height={24} pathFill={grey} width={24} />
@@ -188,18 +188,16 @@ export const SecretMenu = ({
188188
>
189189
Notification Provider
190190
</Text>
191-
{isAndroid ? null : (
192-
<View style={{ marginLeft: 16 }}>
193-
{notificationConfigItems.map((item) => (
194-
<SecretMenuNotificationConfigItem
195-
key={item.id}
196-
notificationConfigItem={item}
197-
storeProvider={storeProvider}
198-
isSelected={item.id === selectedProvider}
199-
/>
200-
))}
201-
</View>
202-
)}
191+
<View style={{ marginLeft: 16 }}>
192+
{notificationConfigItems.map((item) => (
193+
<SecretMenuNotificationConfigItem
194+
key={item.id}
195+
notificationConfigItem={item}
196+
storeProvider={storeProvider}
197+
isSelected={item.id === selectedProvider}
198+
/>
199+
))}
200+
</View>
203201
</View>
204202
</View>
205203
<TouchableOpacity onPress={removeAllDevices} style={menuDrawerStyles.menuItem}>

0 commit comments

Comments
 (0)