generated from Real-Dev-Squad/website-template
-
Notifications
You must be signed in to change notification settings - Fork 39
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 #204 from JAYATEJA04/188/profileEnhancement
Enhancement of profile page in mobile app.
- Loading branch information
Showing
11 changed files
with
674 additions
and
23 deletions.
There are no files selected for viewing
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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
60 changes: 60 additions & 0 deletions
60
src/screens/ProfileScreen/User Data/UserContributions/ActiveTask.tsx
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 |
---|---|---|
@@ -0,0 +1,60 @@ | ||
import React, { useState } from 'react'; | ||
import { View, StyleSheet, Text, TouchableOpacity, Image } from 'react-native'; | ||
|
||
const ActiveTaskDropDown = () => { | ||
const [clicked, setClicked] = useState(false); | ||
return ( | ||
<View style={{ padding: 5 }}> | ||
<TouchableOpacity | ||
onPress={() => setClicked(!clicked)} | ||
style={styles.DropDownButton} | ||
> | ||
<Text style={styles.DropDownTitle}>Active tasks</Text> | ||
{clicked ? ( | ||
<Image | ||
style={styles.ImageDimensions} | ||
source={require('../../../../../assets/down.png')} | ||
/> | ||
) : ( | ||
<Image | ||
style={styles.ImageDimensions} | ||
source={require('../../../../../assets/right.png')} | ||
/> | ||
)} | ||
</TouchableOpacity> | ||
</View> | ||
); | ||
}; | ||
|
||
const styles = StyleSheet.create({ | ||
DropDownButton: { | ||
width: '100%', | ||
height: 80, | ||
elevation: 5, | ||
borderRadius: 10, | ||
backgroundColor: 'white', | ||
alignSelf: 'center', | ||
flexDirection: 'row', | ||
justifyContent: 'space-evenly', | ||
alignItems: 'center', | ||
paddingLeft: 35, | ||
}, | ||
DropDownTitle: { | ||
fontWeight: '600', | ||
fontSize: 20, | ||
color: 'black', | ||
}, | ||
DropDownElement: { | ||
color: 'black', | ||
width: '100%', | ||
alignSelf: 'center', | ||
height: 50, | ||
borderBottomWidth: 0.5, | ||
}, | ||
ImageDimensions: { | ||
height: 100, | ||
width: 100, | ||
}, | ||
}); | ||
|
||
export default ActiveTaskDropDown; |
Oops, something went wrong.