-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #3 from Infinite-Null/testing
Testing
- Loading branch information
Showing
76 changed files
with
477 additions
and
462 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 was deleted.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
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,41 +1,43 @@ | ||
import { Dimensions, TextInput, View } from "react-native"; | ||
import Feather from "react-native-vector-icons/Feather"; | ||
import { Dimensions, Pressable, TextInput, View } from "react-native"; | ||
import { useTheme } from "@react-navigation/native"; | ||
import Entypo from "react-native-vector-icons/Entypo"; | ||
|
||
export const SearchBar = ({onChange}) => { | ||
export const SearchBar = ({onChange, navigation}) => { | ||
const width = Dimensions.get("window").width | ||
const theme = useTheme() | ||
return ( | ||
<View style={{ | ||
flexDirection:"row", | ||
gap:2, | ||
alignItems:"center", | ||
height:50, | ||
height:60, | ||
marginHorizontal:10, | ||
|
||
}}> | ||
<View style={{ | ||
flex:1, | ||
paddingHorizontal:10, | ||
backgroundColor:"rgb(29,33,47)", | ||
paddingHorizontal:5, | ||
backgroundColor:"rgba(0,0,0,0)", | ||
borderTopLeftRadius:10, | ||
borderBottomLeftRadius:10}}> | ||
<TextInput style={{ | ||
<TextInput cursorColor={"rgb(255,255,255)"} placeholder={"Type to search..."} style={{ | ||
color:"white", | ||
fontSize:25, | ||
fontFamily:"roboto", | ||
}} onChangeText={onChange} autoFocus={true}/> | ||
</View> | ||
<View style={{ | ||
backgroundColor:theme.colors.primary, | ||
height:50, | ||
<Pressable onPress={()=>{ | ||
navigation.goBack() | ||
}} style={{ | ||
backgroundColor:"white", | ||
height:43, | ||
justifyContent:"center", | ||
width:50, | ||
borderTopRightRadius:10, | ||
borderBottomRightRadius:10, | ||
width:43, | ||
borderRadius:100000, | ||
elevation:10, | ||
alignItems:"center", | ||
}}> | ||
<Feather name={"search"} size={width * 0.045} color={"black"}/> | ||
</View> | ||
<Entypo name={"cross"} size={width * 0.045} color={"black"}/> | ||
</Pressable> | ||
</View> | ||
); | ||
}; |
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,24 +1,39 @@ | ||
import { Dimensions, Pressable, Text } from "react-native"; | ||
import { Dimensions, Pressable, Text, View } from "react-native"; | ||
import Animated, {ZoomIn, ZoomOut} from "react-native-reanimated"; | ||
import {memo} from "react"; | ||
import { useTheme } from "@react-navigation/native"; | ||
|
||
function EachTabs({item,isActive,index,setActive}) { | ||
const theme = useTheme() | ||
const width = Dimensions.get('window').width | ||
return <Pressable style={{padding:10 , alignItems:"center"}} onPress={()=>{ | ||
return <Pressable style={{padding:7, alignItems:"center"}} onPress={()=>{ | ||
setActive(index) | ||
}}> | ||
<Text style={{ | ||
color:isActive ? theme.colors.primary : theme.colors.textSecondary, | ||
fontSize:width * 0.04, | ||
}}>{item}</Text> | ||
{!isActive && <View style={{ | ||
borderRadius:100000000000, | ||
paddingVertical:7, | ||
}}> | ||
<Text style={{ | ||
color:theme.colors.textSecondary, | ||
fontSize:width * 0.04, | ||
fontFamily:"roboto", | ||
fontWeight:700, | ||
paddingHorizontal:10, | ||
}}>{item}</Text> | ||
</View>} | ||
{isActive && <Animated.View entering={ZoomIn.duration(300)} exiting={ZoomOut.duration(300)} style={{ | ||
width:width * 0.02, | ||
height:width * 0.02, | ||
// width:width * 0.02, | ||
// height:width * 0.02, | ||
backgroundColor:theme.colors.primary, | ||
borderRadius:100000000000, | ||
}}/>} | ||
paddingVertical:7, | ||
}}><Text style={{ | ||
color:isActive ? "black" : theme.colors.textSecondary, | ||
fontSize:width * 0.04, | ||
fontFamily:"roboto", | ||
fontWeight:700, | ||
paddingHorizontal:10, | ||
}}>{item}</Text></Animated.View>} | ||
</Pressable> | ||
} | ||
export default memo(EachTabs) |
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
Oops, something went wrong.