Skip to content

Commit e248602

Browse files
committed
fix: rename custom scrollview
1 parent 3df4d7a commit e248602

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

package/src/components/Message/MessageSimple/utils/renderText.tsx

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ import type { DefaultStreamChatGenerics } from '../../../../types/types';
3636
import { escapeRegExp } from '../../../../utils/utils';
3737
import type { MessageType } from '../../../MessageList/hooks/useMessageList';
3838

39-
const ReactiveScrollView = ({ children }: { children: ReactNode }) => {
39+
export const MarkdownReactiveScrollView = ({ children }: { children: ReactNode }) => {
4040
const scrollViewRef = useAnimatedRef<Animated.ScrollView>();
4141
const contentWidth = useSharedValue(0);
4242
const visibleContentWidth = useSharedValue(0);
@@ -385,15 +385,15 @@ export const renderText = <
385385
);
386386

387387
const codeBlockReact: ReactNodeOutput = (node, _, state) => (
388-
<ReactiveScrollView key={state.key}>
388+
<MarkdownReactiveScrollView key={state.key}>
389389
<Text style={styles.codeBlock}>{node?.content?.trim()}</Text>
390-
</ReactiveScrollView>
390+
</MarkdownReactiveScrollView>
391391
);
392392

393393
const tableReact: ReactNodeOutput = (node, output, state) => (
394-
<ReactiveScrollView key={state.key}>
394+
<MarkdownReactiveScrollView key={state.key}>
395395
<MarkdownTable node={node} output={output} state={state} styles={styles} />
396-
</ReactiveScrollView>
396+
</MarkdownReactiveScrollView>
397397
);
398398

399399
const customRules = {

0 commit comments

Comments
 (0)