:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
import type { ReactElement } from 'react'
import { type StyleProp, Text, type TextStyle } from 'react-native'
import { createStyles } from './theme'
interface RefreshHintProps {
text: string
style?: StyleProp<TextStyle>
testID?: string
}
/**
* The inline hint under the status line. Place it so that showing it does not move the layout, for example
* absolutely positioned in the header's bottom padding.
*/
export function RefreshHint({ text, style, testID = 'views-refresh-hint' }: RefreshHintProps): ReactElement {
const styles = useStyles()
return (
<Text
style={[styles.hint, style]}
numberOfLines={1}
accessibilityLiveRegion="polite"
accessibilityRole="text"
testID={testID}
>
{text}
</Text>
)
}
const useStyles = createStyles(({ colors }) => ({
hint: {
fontSize: 13,
lineHeight: 16,
fontWeight: '600',
color: colors.muted,
},
}))