[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:
Elias Nahum
2022-04-18 08:49:17 -04:00
committed by GitHub
parent 1a5583034e
commit d547bddc2b
52 changed files with 192 additions and 142 deletions

View File

@@ -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>
);