Skip to content

Commit ea007b6

Browse files
committed
Form Created
1 parent 7e5f5c3 commit ea007b6

13 files changed

+8086
-32
lines changed

.expo/packager-info.json

+10
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"devToolsPort": 19002,
3+
"expoServerPort": 19000,
4+
"packagerPort": 19001,
5+
"packagerPid": 51764,
6+
"expoServerNgrokUrl": null,
7+
"packagerNgrokUrl": null,
8+
"ngrokPid": null,
9+
"webpackServerPort": null
10+
}

.expo/settings.json

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"hostType": "lan",
3+
"lanType": "ip",
4+
"dev": true,
5+
"minify": false,
6+
"urlRandomness": null,
7+
"https": false
8+
}

.gitignore

+1-13
Original file line numberDiff line numberDiff line change
@@ -1,13 +1 @@
1-
node_modules/**/*
2-
.expo/*
3-
npm-debug.*
4-
*.jks
5-
*.p8
6-
*.p12
7-
*.key
8-
*.mobileprovision
9-
*.orig.*
10-
web-build/
11-
12-
# macOS
13-
.DS_Store
1+
node_modules

App.css

+54
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
@font-face {
2+
font-family: "Entypo";
3+
src: url("~react-native-vector-icons/Fonts/Entypo.ttf") format("truetype");
4+
}
5+
6+
@font-face {
7+
font-family: "EvilIcons";
8+
src: url("~react-native-vector-icons/Fonts/EvilIcons.ttf") format("truetype");
9+
}
10+
11+
@font-face {
12+
font-family: "FontAwesome";
13+
src: url("~react-native-vector-icons/Fonts/FontAwesome.ttf")
14+
format("truetype");
15+
}
16+
17+
@font-face {
18+
font-family: "fontcustom";
19+
src: url("~react-native-vector-icons/Fonts/Foundation.ttf") format("truetype");
20+
}
21+
22+
@font-face {
23+
font-family: "Ionicons";
24+
src: url("~react-native-vector-icons/Fonts/Ionicons.ttf") format("truetype");
25+
}
26+
27+
@font-face {
28+
/*font-family: 'MaterialCommunityIcons';*/
29+
font-family: "Material Design Icons";
30+
src: url("~react-native-vector-icons/Fonts/MaterialCommunityIcons.ttf")
31+
format("truetype");
32+
}
33+
34+
@font-face {
35+
font-family: "MaterialIcons";
36+
src: url("~react-native-vector-icons/Fonts/MaterialIcons.ttf")
37+
format("truetype");
38+
}
39+
40+
@font-face {
41+
font-family: "Octicons";
42+
src: url("~react-native-vector-icons/Fonts/Octicons.ttf") format("truetype");
43+
}
44+
45+
@font-face {
46+
font-family: "simple-line-icons";
47+
src: url("~react-native-vector-icons/Fonts/SimpleLineIcons.ttf")
48+
format("truetype");
49+
}
50+
51+
@font-face {
52+
font-family: "Zocial";
53+
src: url("~react-native-vector-icons/Fonts/Zocial.ttf") format("truetype");
54+
}

App.js

+36-18
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,39 @@
1-
import { StatusBar } from 'expo-status-bar';
21
import React from 'react';
3-
import { StyleSheet, Text, View } from 'react-native';
2+
import { AppLoading } from 'expo';
3+
import { Container, Text } from 'native-base';
4+
import * as Font from 'expo-font';
5+
import { Ionicons } from '@expo/vector-icons';
6+
import Startup from './Boot/Startup';
7+
import DrawerExample from './screens/DrawerExample';
48

5-
export default function App() {
6-
return (
7-
<View style={styles.container}>
8-
<Text>Open up App.js to start working on your app!</Text>
9-
<StatusBar style="auto" />
10-
</View>
11-
);
12-
}
9+
export default class App extends React.Component {
10+
constructor(props) {
11+
super(props);
12+
this.state = {
13+
isReady: false,
14+
};
15+
}
16+
17+
async componentDidMount() {
18+
await Font.loadAsync({
19+
Roboto: require('native-base/Fonts/Roboto.ttf'),
20+
Roboto_medium: require('native-base/Fonts/Roboto_medium.ttf'),
21+
...Ionicons.font,
22+
23+
});
24+
this.setState({ isReady: true });
25+
}
26+
27+
render() {
28+
if (!this.state.isReady) {
29+
return <AppLoading />;
30+
}
1331

14-
const styles = StyleSheet.create({
15-
container: {
16-
flex: 1,
17-
backgroundColor: '#fff',
18-
alignItems: 'center',
19-
justifyContent: 'center',
20-
},
21-
});
32+
return (
33+
<Container>
34+
35+
<Startup />
36+
</Container>
37+
);
38+
}
39+
}

Boot/Startup.js

+42
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,42 @@
1+
import React, { Component } from 'react';
2+
import FindAsteroidScreen from './../screens/FindAsteroidScreen'
3+
import { Container, Header, Title, Content, Footer, FooterTab, Button, Left, Right, Body, Icon, Text, Form, Item, Input,Label } from 'native-base';
4+
import DrawerExample from '../screens/DrawerExample';
5+
export default class Startup extends Component {
6+
7+
8+
render() {
9+
return (
10+
<Container>
11+
<Header>
12+
<Left>
13+
<Button transparent >
14+
<Icon name='menu' >
15+
16+
</Icon>
17+
18+
19+
</Button>
20+
21+
</Left>
22+
<Body>
23+
<Title>Nasa Astroid </Title>
24+
</Body>
25+
<Right />
26+
</Header>
27+
<Content>
28+
29+
<FindAsteroidScreen />
30+
31+
</Content>
32+
<Footer>
33+
<FooterTab>
34+
<Button full>
35+
<Text>Made with love by Amit Kumar Trivedi</Text>
36+
</Button>
37+
</FooterTab>
38+
</Footer>
39+
</Container>
40+
);
41+
}
42+
}

config-overrides.js

+30
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
const path = require('path');
2+
const {
3+
override,
4+
addWebpackAlias,
5+
babelInclude,
6+
addBabelPlugins
7+
} = require('customize-cra');
8+
9+
module.exports = override(
10+
addWebpackAlias({
11+
"react-native/Libraries/Renderer/shims/ReactNativePropRegistry": "react-native-web/dist/modules/ReactNativePropRegistry",
12+
"react-native": "react-native-web"
13+
}),
14+
babelInclude([
15+
path.resolve('src'),
16+
path.resolve('node_modules/native-base-shoutem-theme'),
17+
path.resolve('node_modules/react-navigation'),
18+
path.resolve('node_modules/react-native-easy-grid'),
19+
path.resolve('node_modules/react-native-drawer'),
20+
path.resolve('node_modules/react-native-safe-area-view'),
21+
path.resolve('node_modules/react-native-vector-icons'),
22+
path.resolve('node_modules/react-native-keyboard-aware-scroll-view'),
23+
path.resolve('node_modules/react-native-web'),
24+
path.resolve('node_modules/react-native-tab-view'),
25+
path.resolve('node_modules/static-container'),
26+
]),
27+
addBabelPlugins(
28+
"@babel/plugin-proposal-class-properties"
29+
),
30+
);

0 commit comments

Comments
 (0)