Skip to content

Commit

Permalink
primeira tela
Browse files Browse the repository at this point in the history
  • Loading branch information
AuroraDark committed Feb 16, 2022
1 parent e7cfe7a commit 36f1a18
Show file tree
Hide file tree
Showing 106 changed files with 19,882 additions and 764 deletions.
61 changes: 61 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,3 +12,64 @@ web-build/

# macOS
.DS_Store

# @generated expo-cli sync-e7dcf75f4e856f7b6f3239b3f3a7dd614ee755a8
# The following patterns were generated by expo-cli

# OSX
#
.DS_Store

# Xcode
#
build/
*.pbxuser
!default.pbxuser
*.mode1v3
!default.mode1v3
*.mode2v3
!default.mode2v3
*.perspectivev3
!default.perspectivev3
xcuserdata
*.xccheckout
*.moved-aside
DerivedData
*.hmap
*.ipa
*.xcuserstate
project.xcworkspace

# Android/IntelliJ
#
build/
.idea
.gradle
local.properties
*.iml
*.hprof

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# Bundle artifacts
*.jsbundle

# CocoaPods
/ios/Pods/

# Expo
.expo/
web-build/
dist/

# @end expo-cli
5 changes: 5 additions & 0 deletions .svgrrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
module.exports = {
replaceAttrValues: {
"#000": "{props.fill}",
},
};
60 changes: 49 additions & 11 deletions App.js
Original file line number Diff line number Diff line change
@@ -1,20 +1,58 @@
import { StatusBar } from 'expo-status-bar';
import { StyleSheet, Text, View } from 'react-native';
import React, { useState, useEffect } from "react";
import Home from "./components/Home/Home";

import { Text, View, StyleSheet, StatusBar } from "react-native";
import AppLoading from "expo-app-loading";
import {
useFonts,
Epilogue_400Regular,
Epilogue_500Medium,
Epilogue_700Bold,
} from "@expo-google-fonts/epilogue";
import { SafeAreaView } from "react-native-safe-area-context";
import { NavigationContainer } from "@react-navigation/native";
import { createNativeStackNavigator } from "@react-navigation/native-stack";

const Stack = createNativeStackNavigator();

export default function App() {
return (
<View style={styles.container}>
<Text>Open up App.js to start working on your app!</Text>
<StatusBar style="auto" />
</View>
);
let [fontsLoaded] = useFonts({
Epilogue_400Regular,
Epilogue_500Medium,
Epilogue_700Bold,
});

if (!fontsLoaded) {
return <AppLoading />;
} else {
return (
<NavigationContainer>
<StatusBar hidden />
<Stack.Navigator
screenOptions={{
headerShown: false,
}}
>
<Stack.Screen
name="Home"
component={Home}
initialParams={{ categoryId: "a" }}
/>
</Stack.Navigator>
</NavigationContainer>
);
}
}

const styles = StyleSheet.create({
container: {
flex: 1,
backgroundColor: '#fff',
alignItems: 'center',
justifyContent: 'center',
backgroundColor: "#1A1A1A",
},

safeArea: {
flex: 1,
alignItems: "center",
justifyContent: "center",
},
});
55 changes: 55 additions & 0 deletions android/app/BUCK
Original file line number Diff line number Diff line change
@@ -0,0 +1,55 @@
# To learn about Buck see [Docs](https://buckbuild.com/).
# To run your application with Buck:
# - install Buck
# - `npm start` - to start the packager
# - `cd android`
# - `keytool -genkey -v -keystore keystores/debug.keystore -storepass android -alias androiddebugkey -keypass android -dname "CN=Android Debug,O=Android,C=US"`
# - `./gradlew :app:copyDownloadableDepsToLibs` - make all Gradle compile dependencies available to Buck
# - `buck install -r android/app` - compile, install and run application
#

load(":build_defs.bzl", "create_aar_targets", "create_jar_targets")

lib_deps = []

create_aar_targets(glob(["libs/*.aar"]))

create_jar_targets(glob(["libs/*.jar"]))

android_library(
name = "all-libs",
exported_deps = lib_deps,
)

android_library(
name = "app-code",
srcs = glob([
"src/main/java/**/*.java",
]),
deps = [
":all-libs",
":build_config",
":res",
],
)

android_build_config(
name = "build_config",
package = "com.dessa.studycards",
)

android_resource(
name = "res",
package = "com.dessa.studycards",
res = "src/main/res",
)

android_binary(
name = "app",
keystore = "//android/keystores:debug",
manifest = "src/main/AndroidManifest.xml",
package_type = "debug",
deps = [
":app-code",
],
)
Loading

0 comments on commit 36f1a18

Please sign in to comment.