-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
native-base removed and replaced to @gluestack-ui/themed-native-base.
- Loading branch information
1 parent
d45f53d
commit a763190
Showing
23 changed files
with
1,989 additions
and
124 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
import React from "react"; | ||
import {FlashList} from "@shopify/flash-list"; | ||
import {Button, HStack, Icon, Text, View, VStack} from "native-base"; | ||
import {Button, HStack, Icon, Text, View, VStack} from "@gluestack-ui/themed-native-base"; | ||
import {GenericCard} from "../cards/GenericCard"; | ||
import {GenericHeaderCard} from "../cards/GenericHeaderCard"; | ||
import {Linking} from "react-native"; | ||
|
@@ -41,30 +41,30 @@ export const InfoList = () => { | |
link: "https://github.com/Alperengozum/Sleepwell", | ||
type: ListType.ITEM, | ||
buttonText: "Open Github Project", | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size="md"/>, | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size={6}/>, | ||
}, | ||
{ | ||
name: "Can I add new feature? 👋", | ||
desc: "Of course! Pull Request is Github are welcome.", | ||
link: "https://github.com/Alperengozum/Sleepwell/pulls", | ||
type: ListType.ITEM, | ||
buttonText: "Open Github Pulls", | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size="md"/>, | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size={6}/>, | ||
}, | ||
{ | ||
name: "I have a Issue", | ||
desc: "I'm sorry to hear that 😔. Please open Github Issue or mail me to fix it ASAP", | ||
link: "https://github.com/Alperengozum/Sleepwell/issues", | ||
type: ListType.ITEM, | ||
buttonText: "Open Github Issues", | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size="md"/>, | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="github" size={6}/>, | ||
}, | ||
{ | ||
name: "I want to contact you", | ||
desc: "Wanna mail me?", | ||
link: "mailto:[email protected]", | ||
type: ListType.ITEM, | ||
icon: <Icon color="white" as={Ionicons} name="send-outline" size="md"/>, | ||
icon: <Icon color="white" as={Ionicons} name="send-outline" size={6}/>, | ||
buttonText: "Send Mail" | ||
}, | ||
{ | ||
|
@@ -73,7 +73,7 @@ export const InfoList = () => { | |
link: "https://play.google.com/store/apps/dev?id=8842825248111634874", | ||
type: ListType.ITEM, | ||
buttonText: "Open Google Play Store", | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="google-play" size="md"/>, | ||
icon: <Icon color="white" as={MaterialCommunityIcons} name="google-play" size={6}/>, | ||
} | ||
] | ||
|
||
|
@@ -95,18 +95,24 @@ export const InfoList = () => { | |
if (item!.type === ListType.HEADER) { | ||
// Rendering header | ||
return <GenericHeaderCard> | ||
<HStack mr={10} justifyContent="space-between" alignItems="center" textAlign="center"> | ||
<HStack mr={10} justifyContent="space-between" alignItems="center" sx={{ | ||
textAlign: "center" | ||
}}> | ||
<Text color="white" fontSize="lg">{item.name}</Text> | ||
<Text color="white" fontSize="lg">{item.desc}</Text> | ||
</HStack> | ||
</GenericHeaderCard>; | ||
} else if (item.type == ListType.ITEM) { | ||
return <GenericCard style={{marginVertical: 10}}> | ||
<HStack my={5} flex={1} justifyContent="space-between" alignItems="center" textAlign="center"> | ||
<HStack my={5} flex={1} justifyContent="space-between" alignItems="center" sx={{ | ||
textAlign: "center" | ||
}}> | ||
<VStack mx={5} space={2} flex={1} alignItems="center"> | ||
<Text color="white" fontSize="md">{item.name}</Text> | ||
<Text color="gray.400" fontSize="sm">{item.desc}</Text> | ||
{item.link ? <Button endIcon={item.icon} variant="solid" colorScheme="purple" borderRadius={15} | ||
{item.link ? <Button endIcon={item.icon} variant="solid" _active={{ | ||
bg: "$purple.800" | ||
}} bg={"$purple.600"} borderRadius={16} | ||
onPress={() => Linking.openURL(item.link)}> | ||
{item.buttonText || "Link"} | ||
</Button> : <React.Fragment/>} | ||
|
Oops, something went wrong.