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>
60 lines
1.6 KiB
TypeScript
60 lines
1.6 KiB
TypeScript
import React, { useContext } from 'react';
|
|
import { StyleSheet, View } from 'react-native';
|
|
import { Placeholder, PlaceholderLine, PlaceholderMedia } from 'rn-placeholder';
|
|
import PlaceholderAnimation from './PlaceholderAnimation';
|
|
import { AppContext } from '@app/context';
|
|
|
|
const NotificationScreenPlaceholder: React.FC = () => {
|
|
|
|
const { theme } = useContext(AppContext);
|
|
|
|
return (
|
|
<View style={styles.container}>
|
|
<Placeholder Animation={PlaceholderAnimation}>
|
|
{new Array(20)
|
|
.fill({})
|
|
.map((_, index) =>
|
|
<View key={index} style={styles.cardContainer}>
|
|
<PlaceholderMedia color={theme.placeholder} size={50} isRound />
|
|
<View style={styles.infoContainer}>
|
|
<PlaceholderLine
|
|
noMargin
|
|
color={theme.placeholder}
|
|
style={styles.notificationCardPlaceholder}
|
|
width={90}
|
|
/>
|
|
<PlaceholderLine
|
|
noMargin
|
|
color={theme.placeholder}
|
|
style={styles.notificationCardPlaceholder}
|
|
width={30}
|
|
/>
|
|
</View>
|
|
</View>
|
|
)}
|
|
</Placeholder>
|
|
</View>
|
|
);
|
|
};
|
|
|
|
const styles = StyleSheet.create({
|
|
container: {
|
|
flex: 1,
|
|
padding: 20,
|
|
paddingBottom: 0
|
|
},
|
|
cardContainer: {
|
|
flexDirection: 'row',
|
|
marginBottom: 20
|
|
},
|
|
infoContainer: {
|
|
flex: 1,
|
|
paddingLeft: 10
|
|
},
|
|
notificationCardPlaceholder: {
|
|
borderRadius: 10,
|
|
marginTop: 10
|
|
}
|
|
});
|
|
|
|
export default NotificationScreenPlaceholder; |