Skip to content

Commit

Permalink
fix header buttons not working on android
Browse files Browse the repository at this point in the history
  • Loading branch information
alecgorge committed Dec 23, 2024
1 parent 017acff commit d090a77
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import { MaterialIcons } from '@expo/vector-icons';
import { Link, useLocalSearchParams, useNavigation } from 'expo-router';
import React, { PropsWithChildren, useCallback, useEffect } from 'react';
import { List as ListContentLoader } from 'react-content-loader/native';
import { Animated, ScrollViewProps, View } from 'react-native';
import { Animated, ScrollViewProps, TouchableOpacity, View } from 'react-native';
import * as R from 'remeda';

import { SourceSets } from '@/relisten/components/source/source_sets_component';
Expand Down Expand Up @@ -143,7 +143,9 @@ export default function Page() {
navigation.setOptions({
title: show?.displayDate,
headerRight: () => (
<MaterialIcons name="more-horiz" color="white" size={22} onPress={onDotsPress} />
<TouchableOpacity onPressOut={onDotsPress}>
<MaterialIcons name="more-horiz" color="white" size={22} />
</TouchableOpacity>
),
});
}, [show]);
Expand Down
2 changes: 1 addition & 1 deletion relisten/components/favorite_icon_button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,6 @@ export const FavoriteObjectButton = <T extends FavoritableObject>({
}, [object, forceUpdate]);

return (
<FavoriteIconButton isFavorited={object.isFavorite} onPress={favoriteOnPress} {...props} />
<FavoriteIconButton isFavorited={object.isFavorite} onPressOut={favoriteOnPress} {...props} />
);
};
4 changes: 2 additions & 2 deletions relisten/player/ui/player_screen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -393,7 +393,7 @@ export function PlayerScreen() {
headerLeft: () => {
return (
<TouchableOpacity
onPress={() => {
onPressOut={() => {
navigation.goBack();
}}
className="py-2 pr-2"
Expand All @@ -405,7 +405,7 @@ export function PlayerScreen() {
headerRight: () => {
return (
<TouchableOpacity
onPress={() => {
onPressOut={() => {
navigation.goBack();

router.push({
Expand Down
5 changes: 4 additions & 1 deletion relisten/util/logging.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@ export const log = logger.createLogger<LogLevels>({
// TODO: when we have entry, also log to a file so that we can attach it to crash reports
transport: [consoleTransport, crashlyticsTransport],
transportOptions: {
CRASHLYTICS: crashlyticsModule,
CRASHLYTICS: {
recordError: (msg: string) => crashlyticsModule.log(msg),
log: (msg: string) => crashlyticsModule.log(msg),
},
},
severity: __DEV__ ? 'debug' : 'info',
async: true,
Expand Down

0 comments on commit d090a77

Please sign in to comment.