diff --git a/patches/react-native-gifted-chat+0.16.3.patch b/patches/react-native-gifted-chat+0.16.3.patch new file mode 100644 index 0000000..8c2fd48 --- /dev/null +++ b/patches/react-native-gifted-chat+0.16.3.patch @@ -0,0 +1,45 @@ +diff --git a/node_modules/react-native-gifted-chat/lib/Time.js b/node_modules/react-native-gifted-chat/lib/Time.js +index 24b06cc..54268fc 100644 +--- a/node_modules/react-native-gifted-chat/lib/Time.js ++++ b/node_modules/react-native-gifted-chat/lib/Time.js +@@ -5,6 +5,8 @@ import dayjs from 'dayjs'; + import Color from './Color'; + import { TIME_FORMAT } from './Constant'; + import { StylePropType } from './utils'; ++import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; ++ + const containerStyle = { + marginLeft: 10, + marginRight: 10, +@@ -38,11 +40,13 @@ const styles = { + export default class Time extends Component { + render() { + const { position, containerStyle, currentMessage, timeFormat, timeTextStyle, } = this.props; ++ let lockColor = currentMessage.direction === "incoming" ? "gray" : "white"; + if (!!currentMessage) { + return ( ++ + ++ {currentMessage.encrypted > 0 ? : null} ++ ++ + ); + } + return null; +@@ -76,6 +83,7 @@ Time.propTypes = { + right: StylePropType, + }), + timeFormat: PropTypes.string, ++ lockStyle: PropTypes, + timeTextStyle: PropTypes.shape({ + left: StylePropType, + right: StylePropType,