Fix rln search crash
This commit is contained in:
@@ -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"}
|
||||
|
||||
@@ -333,10 +333,11 @@ const NovelItem = ({ route, navigation }) => {
|
||||
}}
|
||||
numberOfLines={1}
|
||||
>
|
||||
{novel.Alternative.replace(
|
||||
",",
|
||||
", "
|
||||
)}
|
||||
{novel.Alternative &&
|
||||
novel.Alternative.replace(
|
||||
",",
|
||||
", "
|
||||
)}
|
||||
</Text>
|
||||
<Text
|
||||
style={{
|
||||
|
||||
Reference in New Issue
Block a user