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
Binary file added .DS_Store
Binary file not shown.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
6 changes: 4 additions & 2 deletions App.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,12 @@ import { createSwitchNavigator, createAppContainer } from "react-navigation";
import Demo from "./screens/demo";
import Demo1 from "./screens/demo1";
import Pic from "./screens/pic";
import Main from "./screens/main"
import _ from "lodash";
YellowBox.ignoreWarnings(["Setting a timer"]);
const _console = _.clone(console);
console.warn = (message) => {
if (message.indexOf("Setting a timer") <= -1) {
if (message?.indexOf("Setting a timer") <= -1) {
_console.warn(message);
}
};
Expand All @@ -19,9 +20,10 @@ export default createAppContainer(
Demo,
Demo1,
Pic,
Main
},
{
initialRouteName: "Signup",
initialRouteName: "Pic",
}
)
);
3 changes: 3 additions & 0 deletions helper/index.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
import { Platform} from "react-native";

export const isAndroidPlastForm = () => Platform.OS === 'android'
2,833 changes: 1,322 additions & 1,511 deletions package-lock.json

Large diffs are not rendered by default.

Binary file added screens/.DS_Store
Binary file not shown.
2 changes: 1 addition & 1 deletion screens/display.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import * as React from "react";
import { Text, View, TouchableOpacity, Image, BackHandler } from "react-native";
import styles from "./signup/selectstyle";
import { connect } from "react-redux";
import addUser from "../../ui/screens/signup/actions/index";
import addUser from "./signup/actions/index";

class Display extends React.Component {
componentDidMount() {
Expand Down
21 changes: 18 additions & 3 deletions screens/display1.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import { connect } from "react-redux";
import addUser from "../../ui/screens/signup/actions/index";
import addUser from "./signup/actions/index";
import * as React from "react";
import {
Text,
Expand All @@ -12,6 +12,7 @@ import {
import styles from "./skillstyle";
import { Picker } from "react-native-picker-dropdown";
import { TextInput } from "react-native-gesture-handler";
import { isAndroidPlastForm } from "../helper/index";

var screenWidth = Math.round(Dimensions.get("window").width) / 100;

Expand Down Expand Up @@ -91,6 +92,8 @@ class Display1 extends React.Component {
return [" "].map((specifics) => (
<Picker.Item label={specifics} value={specifics} />
));
return <Picker.Item label="Enter Skills" value="" />;

};
submit = () => {
if (this.state.skill == "") {
Expand Down Expand Up @@ -137,7 +140,13 @@ class Display1 extends React.Component {
<Picker
selectedValue={this.state.skill}
onValueChange={this.updateSkill}
textStyle={{ width: screenWidth * 100, color: "white" }}
placeholder="Select Skills"

textStyle={{ width: isAndroidPlastForm() ? screenWidth * 100:0,
color: "white",
fontSize:15,
marginVertical:7,
paddingVertical:5, }}
mode="dialog"
>
<Picker.Item label="Select Skils: " value="" />
Expand Down Expand Up @@ -171,7 +180,13 @@ class Display1 extends React.Component {
<Picker
onValueChange={(itemValue) => this.updateSpecifics(itemValue)}
selectedValue={this.state.specifics}
textStyle={{ width: screenWidth * 100, color: "white" }}
placeholder="Select City"

textStyle={{ width: isAndroidPlastForm() ? screenWidth * 100:0,
color: "white",
fontSize:15,
marginVertical:7,
paddingVertical:5,}}
mode="dialog"
>
{this.getCities()}
Expand Down
3 changes: 2 additions & 1 deletion screens/image.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@ import * as ImagePicker from "expo-image-picker";
import { connect } from "react-redux";
import addUser from "./signup/actions/index";
import styles from "./imgstyle";
import { StyleSheet } from "react-native";
import {
Dimensions,
Image,
BackHandler,
ActivityIndicator,
Expand Down Expand Up @@ -116,6 +116,7 @@ class App extends React.Component {
uploading: false,
};


render() {
return (
<View style={styles.container}>
Expand Down
10 changes: 5 additions & 5 deletions screens/imgstyle.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ const styles = StyleSheet.create({
capturePhoto: {
width: "42%",
borderRadius: 9,
margin: "5%",
// margin: "5%",
backgroundColor: "#6bd1e9",
top: screenHeight * 8,
left: screenWidth,
Expand All @@ -20,12 +20,12 @@ const styles = StyleSheet.create({
capturePhotoText: {
color: "black",
textAlign: "center",
fontSize: 28,
fontSize: 30,
textAlignVertical: "center",
},
upload: {
width: "40%",
margin: "5%",
// margin: "5%",
borderRadius: 9,
backgroundColor: "#6bd1e9",
top: screenHeight,
Expand All @@ -41,7 +41,7 @@ const styles = StyleSheet.create({
},
uploadLater: {
width: "60%",
margin: "5%",
// margin: "5%",
top: screenHeight * 50,
borderRadius: 9,
backgroundColor: "#6bd1e9",
Expand All @@ -55,7 +55,7 @@ const styles = StyleSheet.create({
},
mainPage: {
width: "60%",
margin: "5%",
// margin: "5%",
top: screenHeight * -10,
borderRadius: 9,
backgroundColor: "#6bd1e9",
Expand Down
191 changes: 191 additions & 0 deletions screens/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,191 @@
import * as React from "react";
import {
Text,
View,
StyleSheet,
Image,
TouchableOpacity,
ScrollView,
} from "react-native";
import Constants from "expo-constants";
import { Dimensions } from "react-native";
const screenWidth = Math.round(Dimensions.get("window").width) / 100;
const screenHeight = Math.round(Dimensions.get("window").height) / 100;
var students = ["hetan", "thakkar", "sarthak", "vraj", "kavin"];
import { isAndroidPlastForm } from "../helper/index"
export default class App extends React.Component {
componentDidMount() {
console.log(
"main" +
this.props.navigation.getParam("id") +
this.props.navigation.getParam("password") +
this.props.navigation.getParam("city") +
this.props.navigation.getParam("name") +
this.props.navigation.getParam("email") +
this.props.navigation.getParam("state") +
this.props.navigation.getParam("gender")
);
}
render() {
return (
<ScrollView style={styles.container}>
<Image
style={{
height: screenHeight * 14,
borderRadius: 100,
width: screenWidth * 27,
marginTop: screenHeight * 5,
alignSelf: "center",
}}
source={{
uri:
"https://images.pexels.com/photos/45201/kitty-cat-kitten-pet-45201.jpeg?auto=compress&cs=tinysrgb&dpr=3&h=750&w=1260",
}}
/>
<Text
style={{
fontSize: 18,
fontWeight: "bold",
paddingTop: screenHeight,
alignSelf: "center",
}}
>
Hetan Thakkar
</Text>
<Text
style={{
alignSelf: "center",
fontSize: 16,
paddingTop: screenHeight,
}}
>
An Unsure Programmer
</Text>
<TouchableOpacity
onPress={() => console.log("hi")}
style={{
width: screenWidth * 95,
borderRadius: 6,
backgroundColor: "white",
height: screenHeight * 4,
marginTop: screenHeight * 2,
marginLeft: screenHeight,
}}
>
<Text
style={{
color: "black",
fontWeight: "bold",
fontSize: 21,
textAlign: "center",
}}
>
Edit Profile
</Text>
</TouchableOpacity>
<Text
style={{
color: "black",
fontSize: 21,
textAlign: "center",
fontFamily: isAndroidPlastForm() ? sans-serif-light:"Al Nile",
marginTop: screenHeight * 2,
}}
>
Location : Bhavnagar,Gujarat
</Text>
<View>
<TouchableOpacity>
<Text
style={{
marginTop: screenHeight * 4,
fontSize: 20,
marginBottom: screenHeight * 2,
marginLeft: screenWidth,
}}
>
Students Taught
</Text>
</TouchableOpacity>
<View
style={{
flexDirection: "row",
justifyContent: "space-around",
}}
>
{students.map((value) => (
<TouchableOpacity>
<Text style={{ fontFamily: isAndroidPlastForm() ? sans-serif-medium:"Al Nile"}}>{value}</Text>
</TouchableOpacity>
))}
</View>
<TouchableOpacity>
<Text
style={{
marginTop: screenHeight * 4,
fontSize: 20,
marginBottom: screenHeight * 2,
marginLeft: screenWidth,
}}
>
Your Tutors:
</Text>
</TouchableOpacity>
<View
style={{
flexDirection: "row",
justifyContent: "space-around",
}}
>
{students.map((value) => (
<TouchableOpacity>
<Text style={{ fontFamily: isAndroidPlastForm() ? sans-serif-medium:"Al Nile"}}>{value}</Text>
</TouchableOpacity>
))}
</View>
<View
style={{
marginTop: screenHeight * 2,
}}
>
<Text
style={{
fontSize: 20,
marginTop: screenHeight * 2,
fontFamily: isAndroidPlastForm() ? sans-serif:"Al Nile",
}}
>
Current Balance : 500
</Text>
<Text
style={{
fontSize: 20,
marginTop: screenHeight * 4,
fontFamily: isAndroidPlastForm() ? sans-serif:"Al Nile"
}}
>
Amount Withdrawn : 200
</Text>
</View>
</View>
<TouchableOpacity
style={{
alignSelf: "center",
marginTop: screenHeight * 4,
marginBottom: screenHeight * 4,
}}
>
<Text style={{ fontSize: 25 }}>My Transactions</Text>
</TouchableOpacity>
</ScrollView>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
paddingTop: Constants.statusBarHeight,
backgroundColor: "#DAE0E2",
textAlign: "center",
},
});
Binary file added screens/signup/.DS_Store
Binary file not shown.
Loading