Fix rln search crash

This commit is contained in:
Rajarshee Chatterjee
2020-12-28 21:56:17 +05:30
parent f1e83369a2
commit e25ff30699
2 changed files with 19 additions and 6 deletions
+14 -2
View File
@@ -129,23 +129,35 @@ const ChapterItem = ({ route, navigation }) => {
{!loading && (
<>
<Appbar.Action
disabled
icon="chevron-left"
size={26}
disabled={!chapter.prevChapter}
// disabled={!chapter.prevChapter}
onPress={() => {
navigation.push("ChapterItem", {
chapterUrl: chapter.prevChapter,
extensionId,
novelCover,
novelUrl,
novelName,
chapterName: chapter.chapterName,
});
}}
color={"white"}
/>
<Appbar.Action
disabled
icon="chevron-right"
size={26}
disabled={!chapter.nextChapter}
// disabled={!chapter.nextChapter}
onPress={() => {
navigation.push("ChapterItem", {
chapterUrl: chapter.nextChapter,
extensionId,
novelCover,
novelUrl,
novelName,
chapterName: chapter.chapterName,
});
}}
color={"white"}
+5 -4
View File
@@ -333,10 +333,11 @@ const NovelItem = ({ route, navigation }) => {
}}
numberOfLines={1}
>
{novel.Alternative.replace(
",",
", "
)}
{novel.Alternative &&
novel.Alternative.replace(
",",
", "
)}
</Text>
<Text
style={{