Skip to content

Commit 8cc5842

Browse files
committed
first upload
0 parents  commit 8cc5842

File tree

112 files changed

+26801
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

112 files changed

+26801
-0
lines changed

.buckconfig

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
2+
[android]
3+
target = Google Inc.:Google APIs:23
4+
5+
[maven_repositories]
6+
central = https://repo1.maven.org/maven2

.editorconfig

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files
2+
[*.bat]
3+
end_of_line = crlf

.eslintrc.js

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
};

.flowconfig

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
[ignore]
2+
; We fork some components by platform
3+
.*/*[.]android.js
4+
5+
; Ignore "BUCK" generated dirs
6+
<PROJECT_ROOT>/\.buckd/
7+
8+
; Ignore polyfills
9+
node_modules/react-native/Libraries/polyfills/.*
10+
11+
; Flow doesn't support platforms
12+
.*/Libraries/Utilities/LoadingView.js
13+
14+
[untyped]
15+
.*/node_modules/@react-native-community/cli/.*/.*
16+
17+
[include]
18+
19+
[libs]
20+
node_modules/react-native/interface.js
21+
node_modules/react-native/flow/
22+
23+
[options]
24+
emoji=true
25+
26+
exact_by_default=true
27+
28+
module.file_ext=.js
29+
module.file_ext=.json
30+
module.file_ext=.ios.js
31+
32+
munge_underscores=true
33+
34+
module.name_mapper='^react-native/\(.*\)$' -> '<PROJECT_ROOT>/node_modules/react-native/\1'
35+
module.name_mapper='^@?[./a-zA-Z0-9$_-]+\.\(bmp\|gif\|jpg\|jpeg\|png\|psd\|svg\|webp\|m4v\|mov\|mp4\|mpeg\|mpg\|webm\|aac\|aiff\|caf\|m4a\|mp3\|wav\|html\|pdf\)$' -> '<PROJECT_ROOT>/node_modules/react-native/Libraries/Image/RelativeImageStub'
36+
37+
suppress_type=$FlowIssue
38+
suppress_type=$FlowFixMe
39+
suppress_type=$FlowFixMeProps
40+
suppress_type=$FlowFixMeState
41+
42+
[lints]
43+
sketchy-null-number=warn
44+
sketchy-null-mixed=warn
45+
sketchy-number=warn
46+
untyped-type-import=warn
47+
nonstrict-import=warn
48+
deprecated-type=warn
49+
unsafe-getters-setters=warn
50+
unnecessary-invariant=warn
51+
signature-verification-failure=warn
52+
53+
[strict]
54+
deprecated-type
55+
nonstrict-import
56+
sketchy-null
57+
unclear-type
58+
unsafe-getters-setters
59+
untyped-import
60+
untyped-type-import
61+
62+
[version]
63+
^0.149.0

.gitattributes

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# Windows files should use crlf line endings
2+
# https://help.github.com/articles/dealing-with-line-endings/
3+
*.bat text eol=crlf

.prettierrc.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
module.exports = {
2+
bracketSpacing: false,
3+
jsxBracketSameLine: true,
4+
singleQuote: true,
5+
trailingComma: 'all',
6+
arrowParens: 'avoid',
7+
};

.watchmanconfig

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

App.js

Lines changed: 57 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
//import liraries
2+
import React, { Component } from 'react';
3+
import { View, StyleSheet, Text, Image } from 'react-native';
4+
import SplashScreen from 'react-native-splash-screen';
5+
import BigCard from './app/components/BigCard';
6+
7+
import CustomText from './app/components/CustomText'
8+
import DetailCard from './app/components/DetailCard';
9+
import HorizontalList from './app/components/HorizontalList';
10+
import ImageText from './app/components/ImageText';
11+
import PreparationCard from './app/components/PreparationCard';
12+
import SmallCard from './app/components/SmallCard';
13+
import TopButton from './app/components/TopButton';
14+
import DetailScreen from './app/screens/DetailScreen';
15+
import Home from './app/screens/Home';
16+
import {NavigationContainer} from '@react-navigation/native'
17+
import AppNavigator from './app/navigation/AppNavigator';
18+
import CustomProgressBar from './app/components/CustomProgressBar';
19+
import CustomProgressBar2 from './app/components/CustomProgressBar2';
20+
import TopBar from './app/components/TopBar';
21+
22+
// create a component
23+
class App extends Component {
24+
25+
componentDidMount(){
26+
SplashScreen.hide()
27+
}
28+
render() {
29+
return (
30+
// <View style={styles.container}>
31+
// {/* <SmallCard/> */}
32+
// {/* <BigCard/> */}
33+
// {/* <HorizontalList/> */}
34+
// {/* <PreparationCard/> */}
35+
// {/* <DetailCard title="Ingredients" style={{backgroundColor:"white"}} maxLines={8}/>
36+
// <DetailCard title="Instructions" style={{backgroundColor:"#F6DEDE"}} maxLines={12}/> */}
37+
// {/* <TopButton imageName="arrow-back"/>
38+
// <TopButton imageName="favorite-border"/>
39+
// <TopButton imageName="favorite"/> */}
40+
// {/* <Home/> */}
41+
// {/* <DetailScreen/> */}
42+
43+
// </View>
44+
<NavigationContainer>
45+
<AppNavigator/>
46+
</NavigationContainer>
47+
// <CustomProgressBar2 visibilty={true}/>
48+
//<TopBar/>
49+
50+
);
51+
}
52+
}
53+
54+
55+
56+
//make this component available to the app
57+
export default App;

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# React-Native-Recipe-App-with-Database

__tests__/App-test.js

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
/**
2+
* @format
3+
*/
4+
5+
import 'react-native';
6+
import React from 'react';
7+
import App from '../App';
8+
9+
// Note: test renderer must be required after react-native.
10+
import renderer from 'react-test-renderer';
11+
12+
it('renders correctly', () => {
13+
renderer.create(<App />);
14+
});

0 commit comments

Comments
 (0)