forked from Ivasoft/mattermost-mobile
[Gekidou] optimizations, fix & moved files (#6177)
* Freeze unfocused tabs * Fix syntax_highlight when multiple code blocks present in the same post * Move @components/channel_list to @screens/home/channels_list/categories_list * Update app/screens/channel/channel.tsx Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com> * Add support for Freeze on Android * Fix render on tablets Co-authored-by: Avinash Lingaloo <avinashlng1080@gmail.com>
This commit is contained in:
@@ -5,6 +5,7 @@ import React, {useCallback} from 'react';
|
||||
import {FlatList, ScrollView, StyleSheet, Text} from 'react-native';
|
||||
import {createStyleObject} from 'react-syntax-highlighter/create-element';
|
||||
|
||||
import {generateId} from '@utils/general';
|
||||
import {changeOpacity} from '@utils/theme';
|
||||
|
||||
type CreateChildren = {
|
||||
@@ -136,6 +137,7 @@ const CodeHighlightRenderer = ({defaultColor, digits, fontFamily, fontSize, rows
|
||||
<FlatList
|
||||
data={rows}
|
||||
renderItem={renderItem}
|
||||
listKey={generateId()}
|
||||
/>
|
||||
</ScrollView>
|
||||
);
|
||||
|
||||
Reference in New Issue
Block a user