Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

fix navigate to topic from notebooks list

ammarahm-ed0200f1c65895
diff --git a/apps/mobile/src/components/NotebookItem/index.js b/apps/mobile/src/components/NotebookItem/index.js
index df40b963a..e27a2a797 100644
--- a/apps/mobile/src/components/NotebookItem/index.js
+++ b/apps/mobile/src/components/NotebookItem/index.js
@@ -91,10 +91,16 @@ export const NotebookItem = ({
{item && item.topics ? (
item.topics.slice(1, 3).map((topic) => (
<TouchableOpacity
+ activeOpacity={0.8}
onPress={() => {
- Navigation.navigate('NotesPage', {
- ...topic,
- });
+ let routeName = 'NotesPage' ;
+ let params = {...topic, menu: false}
+ let headerState = {
+ heading: topic.title,
+ id: topic.id,
+ type: topic.type,
+ };
+ Navigation.navigate(routeName, params, headerState);
}}
key={topic.dateCreated.toString() + topic.title}
style={{