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>
31 lines
791 B
TypeScript
31 lines
791 B
TypeScript
import React, { useContext } from 'react';
|
|
import { StyleSheet, Platform } from 'react-native';
|
|
import { Composer } from 'react-native-gifted-chat';
|
|
import { AppContext } from '@app/context';
|
|
import { Typography } from '@app/theme';
|
|
import { ThemeColors } from '@app/types/theme';
|
|
|
|
const { FontWeights, FontSizes } = Typography;
|
|
|
|
const CustomComposer: React.FC = composerProps => {
|
|
const { theme } = useContext(AppContext);
|
|
return (
|
|
<Composer
|
|
{...composerProps}
|
|
multiline
|
|
textInputStyle={styles(theme).inputStyle}
|
|
/>
|
|
);
|
|
};
|
|
|
|
const styles = (theme = {} as ThemeColors) => StyleSheet.create({
|
|
inputStyle: {
|
|
...FontWeights.Light,
|
|
...FontSizes.Body,
|
|
color: theme.text01,
|
|
paddingTop: 10,
|
|
paddingLeft: 10
|
|
}
|
|
});
|
|
|
|
export default CustomComposer; |