Jelajahi Sumber

Create Bookmark Delete Modal

Savio Fernando 1 tahun lalu
induk
melakukan
b3b187f52a
2 mengubah file dengan 39 tambahan dan 1 penghapusan
  1. 4 1
      src/api/urls.js
  2. 35 0
      src/screens/Bookmarks/DeleteBookmarkModal.js

+ 4 - 1
src/api/urls.js

@@ -14,4 +14,7 @@ export const ARTICLE_CATEGORY_URL = (category_type,page = 1) =>  `article/search
 export const ARTICLE_SEARCH_URL = (search_text,page = 1) =>  `article/search/?domain=${DEFAULT_DOMAIN}&q=${search_text}&page=${page}`
 export const ARTICLE_DETAIL_URL = (slug) => `articles/${slug}/?domain=${DEFAULT_DOMAIN}`
 export const ARTICLE_COMMENTS_URL = (id) => `comment/?article_id=${id}`
-export const ARTICLE_RECOMMENDATIONS_URL = (id) => `articles/${id}/recommendations`
+export const ARTICLE_RECOMMENDATIONS_URL = (id) => `articles/${id}/recommendations`
+
+// * V1 Linking URLS
+export const NEWSCOUT_NEWS_URL = (slug) => `${BASE_URL}/news/article/${slug}`

+ 35 - 0
src/screens/Bookmarks/DeleteBookmarkModal.js

@@ -0,0 +1,35 @@
+import { StyleSheet, Text, View } from 'react-native'
+import React from 'react'
+
+const DeleteBookmarkModal = () => {
+
+
+    const styles = StyleSheet.create({
+        modalContainer: {
+            flex: 1,
+            flexDirection: 'column',
+            justifyContent: 'flex-end',
+            backgroundColor: 'rgba(0,0,0,0)',
+
+        },
+        modal:{
+            minHeight:'50%',
+            height: "50%" ,
+            width: '100%', 
+            backgroundColor:"#fff",
+            justifyContent:"center",
+            alignItems:'center'
+        }
+    })
+    return (
+        <View style={styles.modalContainer}>
+            
+            <View style={styles.modal}>
+            <Text>DeleteBookmarkModal</Text>
+            </View>
+        </View>
+    )
+}
+
+export default DeleteBookmarkModal
+