Skip to content

Commit 6a1fdcc

Browse files
committed
Initial commit
0 parents  commit 6a1fdcc

Some content is hidden

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

63 files changed

+20642
-0
lines changed

Diff for: .bundle/config

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

Diff for: .eslintrc.js

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

Diff for: .expo/README.md

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
> Why do I have a folder named ".expo" in my project?
2+
The ".expo" folder is created when an Expo project is started using "expo start" command.
3+
> What do the files contain?
4+
- "devices.json": contains information about devices that have recently opened this project. This is used to populate the "Development sessions" list in your development builds.
5+
- "settings.json": contains the server configuration that is used to serve the application manifest.
6+
> Should I commit the ".expo" folder?
7+
No, you should not share the ".expo" folder. It does not contain any information that is relevant for other developers working on the project, it is specific to your machine.
8+
Upon project creation, the ".expo" folder is already added to your ".gitignore" file.

Diff for: .expo/devices.json

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
{
2+
"devices": []
3+
}

Diff for: .gitignore

+74
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
**/.xcode.env.local
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
36+
37+
# node.js
38+
#
39+
node_modules/
40+
npm-debug.log
41+
yarn-error.log
42+
43+
# fastlane
44+
#
45+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46+
# screenshots whenever they are needed.
47+
# For more information about the recommended setup visit:
48+
# https://docs.fastlane.tools/best-practices/source-control/
49+
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
54+
55+
# Bundle artifact
56+
*.jsbundle
57+
58+
# Ruby / CocoaPods
59+
**/Pods/
60+
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*
64+
65+
# testing
66+
/coverage
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions

Diff for: .prettierrc.js

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

Diff for: .watchmanconfig

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

Diff for: App.tsx

+39
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import React from 'react';
2+
import {
3+
SafeAreaView,
4+
StyleSheet,
5+
Text,
6+
View,
7+
} from 'react-native';
8+
9+
function App(): React.JSX.Element {
10+
return (
11+
<SafeAreaView style={styles.container}>
12+
<View style={styles.content}>
13+
<Text style={styles.title}>
14+
My First React Native Application
15+
</Text>
16+
</View>
17+
</SafeAreaView>
18+
);
19+
}
20+
21+
const styles = StyleSheet.create({
22+
container: {
23+
flex: 1,
24+
backgroundColor: '#fff',
25+
},
26+
content: {
27+
flex: 1,
28+
justifyContent: 'center',
29+
alignItems: 'center',
30+
padding: 20,
31+
},
32+
title: {
33+
fontSize: 24,
34+
fontWeight: 'bold',
35+
textAlign: 'center',
36+
},
37+
});
38+
39+
export default App;

Diff for: Gemfile

+9
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
source 'https://rubygems.org'
2+
3+
# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
4+
ruby ">= 2.6.10"
5+
6+
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
7+
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
8+
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
9+
gem 'xcodeproj', '< 1.26.0'

Diff for: Gemfile.lock

+119
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,119 @@
1+
GEM
2+
remote: https://rubygems.org/
3+
specs:
4+
CFPropertyList (3.0.7)
5+
base64
6+
nkf
7+
rexml
8+
activesupport (7.1.5)
9+
base64
10+
benchmark (>= 0.3)
11+
bigdecimal
12+
concurrent-ruby (~> 1.0, >= 1.0.2)
13+
connection_pool (>= 2.2.5)
14+
drb
15+
i18n (>= 1.6, < 2)
16+
logger (>= 1.4.2)
17+
minitest (>= 5.1)
18+
mutex_m
19+
securerandom (>= 0.3)
20+
tzinfo (~> 2.0)
21+
addressable (2.8.7)
22+
public_suffix (>= 2.0.2, < 7.0)
23+
algoliasearch (1.27.5)
24+
httpclient (~> 2.8, >= 2.8.3)
25+
json (>= 1.5.1)
26+
atomos (0.1.3)
27+
base64 (0.2.0)
28+
benchmark (0.4.0)
29+
bigdecimal (3.1.8)
30+
claide (1.1.0)
31+
cocoapods (1.15.2)
32+
addressable (~> 2.8)
33+
claide (>= 1.0.2, < 2.0)
34+
cocoapods-core (= 1.15.2)
35+
cocoapods-deintegrate (>= 1.0.3, < 2.0)
36+
cocoapods-downloader (>= 2.1, < 3.0)
37+
cocoapods-plugins (>= 1.0.0, < 2.0)
38+
cocoapods-search (>= 1.0.0, < 2.0)
39+
cocoapods-trunk (>= 1.6.0, < 2.0)
40+
cocoapods-try (>= 1.1.0, < 2.0)
41+
colored2 (~> 3.1)
42+
escape (~> 0.0.4)
43+
fourflusher (>= 2.3.0, < 3.0)
44+
gh_inspector (~> 1.0)
45+
molinillo (~> 0.8.0)
46+
nap (~> 1.0)
47+
ruby-macho (>= 2.3.0, < 3.0)
48+
xcodeproj (>= 1.23.0, < 2.0)
49+
cocoapods-core (1.15.2)
50+
activesupport (>= 5.0, < 8)
51+
addressable (~> 2.8)
52+
algoliasearch (~> 1.0)
53+
concurrent-ruby (~> 1.1)
54+
fuzzy_match (~> 2.0.4)
55+
nap (~> 1.0)
56+
netrc (~> 0.11)
57+
public_suffix (~> 4.0)
58+
typhoeus (~> 1.0)
59+
cocoapods-deintegrate (1.0.5)
60+
cocoapods-downloader (2.1)
61+
cocoapods-plugins (1.0.0)
62+
nap
63+
cocoapods-search (1.0.1)
64+
cocoapods-trunk (1.6.0)
65+
nap (>= 0.8, < 2.0)
66+
netrc (~> 0.11)
67+
cocoapods-try (1.2.0)
68+
colored2 (3.1.2)
69+
concurrent-ruby (1.3.4)
70+
connection_pool (2.4.1)
71+
drb (2.2.1)
72+
escape (0.0.4)
73+
ethon (0.16.0)
74+
ffi (>= 1.15.0)
75+
ffi (1.17.0)
76+
fourflusher (2.3.1)
77+
fuzzy_match (2.0.4)
78+
gh_inspector (1.1.3)
79+
httpclient (2.8.3)
80+
i18n (1.14.6)
81+
concurrent-ruby (~> 1.0)
82+
json (2.8.2)
83+
logger (1.6.1)
84+
minitest (5.25.1)
85+
molinillo (0.8.0)
86+
mutex_m (0.2.0)
87+
nanaimo (0.3.0)
88+
nap (1.1.0)
89+
netrc (0.11.0)
90+
nkf (0.2.0)
91+
public_suffix (4.0.7)
92+
rexml (3.3.9)
93+
ruby-macho (2.5.1)
94+
securerandom (0.3.2)
95+
typhoeus (1.4.1)
96+
ethon (>= 0.9.0)
97+
tzinfo (2.0.6)
98+
concurrent-ruby (~> 1.0)
99+
xcodeproj (1.25.1)
100+
CFPropertyList (>= 2.3.3, < 4.0)
101+
atomos (~> 0.1.3)
102+
claide (>= 1.0.2, < 2.0)
103+
colored2 (~> 3.1)
104+
nanaimo (~> 0.3.0)
105+
rexml (>= 3.3.6, < 4.0)
106+
107+
PLATFORMS
108+
ruby
109+
110+
DEPENDENCIES
111+
activesupport (>= 6.1.7.5, != 7.1.0)
112+
cocoapods (>= 1.13, != 1.15.1, != 1.15.0)
113+
xcodeproj (< 1.26.0)
114+
115+
RUBY VERSION
116+
ruby 2.7.5p203
117+
118+
BUNDLED WITH
119+
2.1.4

Diff for: README.md

+79
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
This is a new [**React Native**](https://reactnative.dev) project, bootstrapped using [`@react-native-community/cli`](https://github.com/react-native-community/cli).
2+
3+
# Getting Started
4+
5+
>**Note**: Make sure you have completed the [React Native - Environment Setup](https://reactnative.dev/docs/environment-setup) instructions till "Creating a new application" step, before proceeding.
6+
7+
## Step 1: Start the Metro Server
8+
9+
First, you will need to start **Metro**, the JavaScript _bundler_ that ships _with_ React Native.
10+
11+
To start Metro, run the following command from the _root_ of your React Native project:
12+
13+
```bash
14+
# using npm
15+
npm start
16+
17+
# OR using Yarn
18+
yarn start
19+
```
20+
21+
## Step 2: Start your Application
22+
23+
Let Metro Bundler run in its _own_ terminal. Open a _new_ terminal from the _root_ of your React Native project. Run the following command to start your _Android_ or _iOS_ app:
24+
25+
### For Android
26+
27+
```bash
28+
# using npm
29+
npm run android
30+
31+
# OR using Yarn
32+
yarn android
33+
```
34+
35+
### For iOS
36+
37+
```bash
38+
# using npm
39+
npm run ios
40+
41+
# OR using Yarn
42+
yarn ios
43+
```
44+
45+
If everything is set up _correctly_, you should see your new app running in your _Android Emulator_ or _iOS Simulator_ shortly provided you have set up your emulator/simulator correctly.
46+
47+
This is one way to run your app — you can also run it directly from within Android Studio and Xcode respectively.
48+
49+
## Step 3: Modifying your App
50+
51+
Now that you have successfully run the app, let's modify it.
52+
53+
1. Open `App.tsx` in your text editor of choice and edit some lines.
54+
2. For **Android**: Press the <kbd>R</kbd> key twice or select **"Reload"** from the **Developer Menu** (<kbd>Ctrl</kbd> + <kbd>M</kbd> (on Window and Linux) or <kbd>Cmd ⌘</kbd> + <kbd>M</kbd> (on macOS)) to see your changes!
55+
56+
For **iOS**: Hit <kbd>Cmd ⌘</kbd> + <kbd>R</kbd> in your iOS Simulator to reload the app and see your changes!
57+
58+
## Congratulations! :tada:
59+
60+
You've successfully run and modified your React Native App. :partying_face:
61+
62+
### Now what?
63+
64+
- If you want to add this new React Native code to an existing application, check out the [Integration guide](https://reactnative.dev/docs/integration-with-existing-apps).
65+
- If you're curious to learn more about React Native, check out the [Introduction to React Native](https://reactnative.dev/docs/getting-started).
66+
67+
# Troubleshooting
68+
69+
If you can't get this to work, see the [Troubleshooting](https://reactnative.dev/docs/troubleshooting) page.
70+
71+
# Learn More
72+
73+
To learn more about React Native, take a look at the following resources:
74+
75+
- [React Native Website](https://reactnative.dev) - learn more about React Native.
76+
- [Getting Started](https://reactnative.dev/docs/environment-setup) - an **overview** of React Native and how setup your environment.
77+
- [Learn the Basics](https://reactnative.dev/docs/getting-started) - a **guided tour** of the React Native **basics**.
78+
- [Blog](https://reactnative.dev/blog) - read the latest official React Native **Blog** posts.
79+
- [`@facebook/react-native`](https://github.com/facebook/react-native) - the Open Source; GitHub **repository** for React Native.

Diff for: __tests__/App.test.tsx

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
/**
2+
* @format
3+
*/
4+
5+
import 'react-native';
6+
import React from 'react';
7+
import App from '../App';
8+
9+
// Note: import explicitly to use the types shipped with jest.
10+
import {it} from '@jest/globals';
11+
12+
// Note: test renderer must be required after react-native.
13+
import renderer from 'react-test-renderer';
14+
15+
it('renders correctly', () => {
16+
renderer.create(<App />);
17+
});

0 commit comments

Comments
 (0)