Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 11 additions & 8 deletions Components/ButtonGroup.js
Original file line number Diff line number Diff line change
@@ -1,29 +1,30 @@
import React from 'react';
import { StyleSheet, Text, View, } from 'react-native';
import { InputAccessoryView, StyleSheet, Text, View, } from 'react-native';
import {LinearGradient} from 'expo-linear-gradient';

import SelectButton from './SelectButton.js';

export default function ButtonGroup({navigation}) {

return(
<View style={styles.container}>
<View style={{alignSelf: 'flex-start'}} onPress={ () => {pressHandler()}}>
<SelectButton gradcolour='a' title=' Something ' navigation={navigation}/>
<View style={{alignSelf: 'flex-start'}} onPress={ () => {pressHandler()}}>
<SelectButton gradcolour='a' title='Baic Checkup' navigation={navigation}/>
</View>
<View style={{alignSelf: 'flex-end'}}>
<SelectButton gradcolour='a' title=' Something ' />
<SelectButton gradcolour='a' title='Intermidate Checkup' />
</View >
<View style={{alignSelf: 'flex-start'}}>
<SelectButton gradcolour='a' title=' Something ' />
<SelectButton gradcolour='a' title='Advanced Checkup' />
</View>
<View style={{alignSelf: 'flex-end'}}>
<SelectButton gradcolour='a' title=' Something ' />
<SelectButton gradcolour='a' title='Help-Contact' />
</View>
<View style={{alignSelf: 'flex-start'}}>
<SelectButton gradcolour='a' title=' Something ' />
<SelectButton gradcolour='a' title='Deceloper-contact' />
</View>
<View style={{alignSelf: 'flex-end'}}>
<SelectButton gradcolour='a' title=' Something ' />
<SelectButton gradcolour='a' title='About' />
</View>

</View>
Expand All @@ -37,5 +38,7 @@ const styles = StyleSheet.create({
backgroundColor: '#fff',
justifyContent: 'center',
marginTop: -20,
// fontWeigh: '90'
fontSize: 500,
},
});
11 changes: 8 additions & 3 deletions Components/SelectButton.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import React from 'react';
import {View, Text, Button,Linking, Alert, StyleSheet} from 'react-native';
import {LinearGradient} from 'expo-linear-gradient'

export default function SelectButton(props) {
const pressHandler = () => {
Expand All @@ -19,25 +20,29 @@ export default function SelectButton(props) {
}
return(
<View style={styles.container} >
<LinearGradient colors={['pink', 'cyan']} start={{x:0,y:1}} end={{x:1,y:0}} style={styles.container}>
<Text style={styles.button1}>
{props.title}

</Text>
</LinearGradient>
</View>
);
}

const styles = StyleSheet.create({
container : {

container : {
borderRadius: 10,
},

button1: {
backgroundColor: 'cyan',
paddingHorizontal : 40,
paddingVertical: 100,
borderRadius: 8,
marginHorizontal : 15,
marginVertical: 0,
fontSize: 18,
fontFamily:"sans-serif-medium"
},
button2: {
backgroundColor: 'black',
Expand Down
10 changes: 5 additions & 5 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
"@react-native-community/masked-view": "^0.1.10",
"@react-navigation/native": "^5.9.2",
"@react-navigation/stack": "^5.14.2",
"expo": "~40.0.0",
"expo-linear-gradient": "~8.4.0",
"expo": "^40.0.1",
"expo-linear-gradient": "^8.4.0",
"expo-splash-screen": "~0.8.0",
"expo-status-bar": "~1.0.3",
"expo-updates": "~0.4.0",
Expand Down