Skip to content

Commit 58df468

Browse files
started with bare react-native
0 parents  commit 58df468

Some content is hidden

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

72 files changed

+32185
-0
lines changed

.buckconfig

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

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

.gitattributes

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

.gitignore

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

.watchmanconfig

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

App.tsx

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

Routes.tsx

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
import React from "react";
2+
import { createNativeStackNavigator } from "@react-navigation/native-stack";
3+
import { NavigationContainer } from "@react-navigation/native";
4+
import { View } from "react-native";
5+
6+
interface RoutesProps {}
7+
8+
const Stack = createNativeStackNavigator();
9+
export const Routes: React.FC<RoutesProps> = ({}) => {
10+
return (
11+
<View>Hi</View>
12+
// <NavigationContainer>
13+
// <Stack.Navigator></Stack.Navigator>
14+
// </NavigationContainer>
15+
);
16+
};

__tests__/App-test.tsx

+14
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+
});

android/app/_BUCK

+55
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,55 @@
1+
# To learn about Buck see [Docs](https://buckbuild.com/).
2+
# To run your application with Buck:
3+
# - install Buck
4+
# - `npm start` - to start the packager
5+
# - `cd android`
6+
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
7+
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
8+
# - `buck install -r android/app` - compile, install and run application
9+
#
10+
11+
load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")
12+
13+
lib_deps = []
14+
15+
create_aar_targets(glob(["libs/*.aar"]))
16+
17+
create_jar_targets(glob(["libs/*.jar"]))
18+
19+
android_library(
20+
name = "all-libs",
21+
exported_deps = lib_deps,
22+
)
23+
24+
android_library(
25+
name = "app-code",
26+
srcs = glob([
27+
"src/main/java/**/*.java",
28+
]),
29+
deps = [
30+
":all-libs",
31+
":build_config",
32+
":res",
33+
],
34+
)
35+
36+
android_build_config(
37+
name = "build_config",
38+
package = "com.aviatecodersappv1",
39+
)
40+
41+
android_resource(
42+
name = "res",
43+
package = "com.aviatecodersappv1",
44+
res = "src/main/res",
45+
)
46+
47+
android_binary(
48+
name = "app",
49+
keystore = "//android/keystores:debug",
50+
manifest = "src/main/AndroidManifest.xml",
51+
package_type = "debug",
52+
deps = [
53+
":app-code",
54+
],
55+
)

0 commit comments

Comments
 (0)