From bde3d2224e395208489d3ebaff22ed6dbfe59c86 Mon Sep 17 00:00:00 2001 From: Reza_ashrafi Date: Tue, 1 Mar 2022 19:20:15 +0330 Subject: [PATCH] reza added profile bookmark --- .../BottomSheetComponents/ProfileAddress.js | 0 .../components/ProfileAddress/dots.svg | 10 - .../components/ProfileBookmark/index.js | 174 +++++++++++++++++- 3 files changed, 165 insertions(+), 19 deletions(-) delete mode 100644 src/components/BottomSheetComponents/ProfileAddress.js delete mode 100644 src/screens/Profile/components/ProfileAddress/dots.svg diff --git a/src/components/BottomSheetComponents/ProfileAddress.js b/src/components/BottomSheetComponents/ProfileAddress.js deleted file mode 100644 index e69de29..0000000 diff --git a/src/screens/Profile/components/ProfileAddress/dots.svg b/src/screens/Profile/components/ProfileAddress/dots.svg deleted file mode 100644 index a7e8e05..0000000 --- a/src/screens/Profile/components/ProfileAddress/dots.svg +++ /dev/null @@ -1,10 +0,0 @@ - - - - - - - - - - diff --git a/src/screens/Profile/components/ProfileBookmark/index.js b/src/screens/Profile/components/ProfileBookmark/index.js index 289889b..24a801a 100644 --- a/src/screens/Profile/components/ProfileBookmark/index.js +++ b/src/screens/Profile/components/ProfileBookmark/index.js @@ -1,12 +1,168 @@ -import { View, Text } from 'react-native' -import React from 'react' +import { + View, + Text, + Pressable, + Appearance, + SafeAreaView, + ScrollView, + StyleSheet, + Platform, + Dimensions, + StatusBar, + Image, +} from "react-native"; +import React from "react"; +import { connect } from "react-redux"; +import { useNavigation } from "@react-navigation/native"; +import Svg, { Path } from "react-native-svg" + +//components +import Navbar from "../../../../components/Navbar"; + +//style +import tw from "tailwind-rn"; +import Colors from "../../../../constants/Colors"; +import fontSize from "../../../../constants/fontSize"; + +//assets +import bookImage from "../../..//OrdersFollowUp/assets/b1.png"; + +const { height, width } = Dimensions.get("window"); + +const ProfileBookmark = ({ bookmarkList }) => { + const colorScheme = Appearance.getColorScheme(); + const navigation = useNavigation(); + + const Bookmark = ({ bookmark }) => { + return ( + + + + + + {bookmark.name} + + + {bookmark.grade} + + + + + + + + + ); + }; -const ProfileBookmark = () => { return ( - - ProfileBookmark - - ) -} + + + + + + {bookmarkList.map((bookmark, index) => ( + + ))} + + + + + ); +}; + +const mapStateToProps = (state) => ({ + loading: state.userFactor.loading, +}); + +const mapDispatchToProps = {}; + +export default connect(mapStateToProps, mapDispatchToProps)(ProfileBookmark); + +const styles = StyleSheet.create({ + contentContainerStyle: { + paddingBottom: 100, + position: "relative", + }, + container: { + width: Dimensions.get("window").width, + backgroundColor: "white", + flexDirection: "column", + paddingVertical: 0, + paddingHorizontal: 0, + }, +}); -export default ProfileBookmark \ No newline at end of file +ProfileBookmark.defaultProps = { + bookmarkList: [ + { + name: "کتاب آموزشی علوم تجربی", + grade: "پایه ششم ابتدایی", + image: bookImage, + }, + ], +};