Skip to content

Commit 51c18b6

Browse files
committed
fresh install
0 parents  commit 51c18b6

File tree

73 files changed

+30488
-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.

73 files changed

+30488
-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

.bundle/config

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1

.eslintrc.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
root: true,
3+
extends: '@react-native-community',
4+
parser: '@typescript-eslint/parser',
5+
plugins: ['@typescript-eslint'],
6+
overrides: [
7+
{
8+
files: ['*.ts', '*.tsx'],
9+
rules: {
10+
'@typescript-eslint/no-shadow': ['error'],
11+
'no-shadow': 'off',
12+
'no-undef': 'off',
13+
},
14+
},
15+
],
16+
};

.gitignore

Lines changed: 64 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,64 @@
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+
ios/.xcode.env.local
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
.cxx/
34+
35+
# node.js
36+
#
37+
node_modules/
38+
npm-debug.log
39+
yarn-error.log
40+
41+
# BUCK
42+
buck-out/
43+
\.buckd/
44+
*.keystore
45+
!debug.keystore
46+
47+
# fastlane
48+
#
49+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
50+
# screenshots whenever they are needed.
51+
# For more information about the recommended setup visit:
52+
# https://docs.fastlane.tools/best-practices/source-control/
53+
54+
**/fastlane/report.xml
55+
**/fastlane/Preview.html
56+
**/fastlane/screenshots
57+
**/fastlane/test_output
58+
59+
# Bundle artifact
60+
*.jsbundle
61+
62+
# Ruby / CocoaPods
63+
/ios/Pods/
64+
/vendor/bundle/

.node-version

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

.prettierrc.js

Lines changed: 7 additions & 0 deletions
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+
};

.ruby-version

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

.watchmanconfig

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

App.tsx

Lines changed: 120 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,120 @@
1+
/**
2+
* Sample React Native App
3+
* https://github.com/facebook/react-native
4+
*
5+
* Generated with the TypeScript template
6+
* https://github.com/react-native-community/react-native-template-typescript
7+
*
8+
* @format
9+
*/
10+
11+
import React, {type PropsWithChildren} from 'react';
12+
import {
13+
SafeAreaView,
14+
ScrollView,
15+
StatusBar,
16+
StyleSheet,
17+
Text,
18+
useColorScheme,
19+
View,
20+
} from 'react-native';
21+
22+
import {
23+
Colors,
24+
DebugInstructions,
25+
Header,
26+
LearnMoreLinks,
27+
ReloadInstructions,
28+
} from 'react-native/Libraries/NewAppScreen';
29+
30+
const Section: React.FC<
31+
PropsWithChildren<{
32+
title: string;
33+
}>
34+
> = ({children, title}) => {
35+
const isDarkMode = useColorScheme() === 'dark';
36+
return (
37+
<View style={styles.sectionContainer}>
38+
<Text
39+
style={[
40+
styles.sectionTitle,
41+
{
42+
color: isDarkMode ? Colors.white : Colors.black,
43+
},
44+
]}>
45+
{title}
46+
</Text>
47+
<Text
48+
style={[
49+
styles.sectionDescription,
50+
{
51+
color: isDarkMode ? Colors.light : Colors.dark,
52+
},
53+
]}>
54+
{children}
55+
</Text>
56+
</View>
57+
);
58+
};
59+
60+
const App = () => {
61+
const isDarkMode = useColorScheme() === 'dark';
62+
63+
const backgroundStyle = {
64+
backgroundColor: isDarkMode ? Colors.darker : Colors.lighter,
65+
};
66+
67+
return (
68+
<SafeAreaView style={backgroundStyle}>
69+
<StatusBar
70+
barStyle={isDarkMode ? 'light-content' : 'dark-content'}
71+
backgroundColor={backgroundStyle.backgroundColor}
72+
/>
73+
<ScrollView
74+
contentInsetAdjustmentBehavior="automatic"
75+
style={backgroundStyle}>
76+
<Header />
77+
<View
78+
style={{
79+
backgroundColor: isDarkMode ? Colors.black : Colors.white,
80+
}}>
81+
<Section title="Step One">
82+
Edit <Text style={styles.highlight}>App.tsx</Text> to change this
83+
screen and then come back to see your edits.
84+
</Section>
85+
<Section title="See Your Changes">
86+
<ReloadInstructions />
87+
</Section>
88+
<Section title="Debug">
89+
<DebugInstructions />
90+
</Section>
91+
<Section title="Learn More">
92+
Read the docs to discover what to do next:
93+
</Section>
94+
<LearnMoreLinks />
95+
</View>
96+
</ScrollView>
97+
</SafeAreaView>
98+
);
99+
};
100+
101+
const styles = StyleSheet.create({
102+
sectionContainer: {
103+
marginTop: 32,
104+
paddingHorizontal: 24,
105+
},
106+
sectionTitle: {
107+
fontSize: 24,
108+
fontWeight: '600',
109+
},
110+
sectionDescription: {
111+
marginTop: 8,
112+
fontSize: 18,
113+
fontWeight: '400',
114+
},
115+
highlight: {
116+
fontWeight: '700',
117+
},
118+
});
119+
120+
export default App;

Gemfile

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
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.7.5'
5+
6+
gem 'cocoapods', '~> 1.11', '>= 1.11.2'

0 commit comments

Comments
 (0)