Moved later/gitgram-ai/gitgram/ to apps/ritgram/ (fresh history; full history stays in caelum0x/gitgram). AITimeMachine stays separate in later/gitgram-ai per the Rithub master plan. Logs, pid files and env files are ignored; GPL-3.0 mobile/proximity noted in THIRD_PARTY_NOTICES. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com>
26 lines
572 B
TypeScript
26 lines
572 B
TypeScript
import React from 'react';
|
|
import { RefreshControl, RefreshControlProps } from 'react-native';
|
|
import { Colors } from '../../constants/Colors';
|
|
|
|
interface PullToRefreshProps extends Omit<RefreshControlProps, 'colors' | 'tintColor'> {
|
|
refreshing: boolean;
|
|
onRefresh: () => void;
|
|
}
|
|
|
|
export default function PullToRefresh({
|
|
refreshing,
|
|
onRefresh,
|
|
...props
|
|
}: PullToRefreshProps) {
|
|
return (
|
|
<RefreshControl
|
|
refreshing={refreshing}
|
|
onRefresh={onRefresh}
|
|
tintColor={Colors.accent}
|
|
colors={[Colors.accent]}
|
|
{...props}
|
|
/>
|
|
);
|
|
}
|
|
|