feat: add favorite, pin& restore function.

This commit is contained in:
ammarahm-ed
2020-01-07 11:12:55 +05:00
parent cabaf134b3
commit 4a5069f2be
6 changed files with 650 additions and 56 deletions

View File

@@ -140,6 +140,7 @@ export const AddNotebookDialog = ({visible, close, toEdit = null}) => {
animationType="fade"
onShow={() => {
refs = [];
if (toEdit !== null) {
let topicsList = [];
toEdit.topics.forEach(item => {
@@ -234,6 +235,7 @@ export const AddNotebookDialog = ({visible, close, toEdit = null}) => {
offset: 50 * index,
index,
})}
keyExtractor={(item, index) => item + index}
renderItem={({item, index}) => (
<TopicItem
item={item}