mirror of
https://github.com/zimplexing/OrionTV.git
synced 2026-02-14 11:44:47 +08:00
Add Prettier configuration and refactor code for consistent formatting
- Introduced a .prettierrc file to standardize code formatting. - Updated import statements and JSX attributes in NotFoundScreen, HomeScreen, PlayScreen, and PlayerControls for consistent use of double quotes. - Refactored styles in various components to use double quotes for string values. - Added SeekingBar component to enhance video playback experience.
This commit is contained in:
@@ -4,25 +4,26 @@ import { Pressable, StyleSheet, StyleProp, ViewStyle } from "react-native";
|
||||
interface MediaButtonProps {
|
||||
onPress: () => void;
|
||||
children: React.ReactNode;
|
||||
isFocused?: boolean;
|
||||
isDisabled?: boolean;
|
||||
hasTVPreferredFocus?: boolean;
|
||||
style?: StyleProp<ViewStyle>;
|
||||
}
|
||||
|
||||
export const MediaButton: React.FC<MediaButtonProps> = ({
|
||||
onPress,
|
||||
children,
|
||||
isFocused = false,
|
||||
isDisabled = false,
|
||||
hasTVPreferredFocus = false,
|
||||
style,
|
||||
}) => {
|
||||
return (
|
||||
<Pressable
|
||||
hasTVPreferredFocus={hasTVPreferredFocus}
|
||||
onPress={onPress}
|
||||
disabled={isDisabled}
|
||||
style={[
|
||||
style={({ focused }) => [
|
||||
styles.mediaControlButton,
|
||||
isFocused && styles.focusedButton,
|
||||
focused && styles.focusedButton,
|
||||
isDisabled && styles.disabledButton,
|
||||
style,
|
||||
]}
|
||||
|
||||
Reference in New Issue
Block a user