Browse Source

First version to repo

master
Daniel D'Angelo Resende Barros 4 years ago
parent
commit
dca97ee87e
  1. 4
      src/.expo-shared/assets.json
  2. 7
      src/App.js
  3. 32
      src/app.json
  4. BIN
      src/app/assets/adaptive-icon.png
  5. BIN
      src/app/assets/favicon.png
  6. BIN
      src/app/assets/icon.png
  7. BIN
      src/app/assets/splash.png
  8. BIN
      src/app/assets/wp6.jpg
  9. 10
      src/app/config/colors.js
  10. 53
      src/app/screens/ViewImageScreen.js
  11. 6
      src/babel.config.js
  12. 23
      src/package.json
  13. 5694
      src/yarn.lock

4
src/.expo-shared/assets.json

@ -0,0 +1,4 @@
{
"12bb71342c6255bbf50437ec8f4441c083f47cdb74bd89160c15e4f43e52a1cb": true,
"40b842e832070c58deac6aa9e08fa459302ee3f9da492c7e77d93d2fbf4a56fd": true
}

7
src/App.js

@ -0,0 +1,7 @@
import React from 'react';
import ViewImageScreen from "./app/screens/ViewImageScreen";
export default function App() {
return <ViewImageScreen />;
}

32
src/app.json

@ -0,0 +1,32 @@
{
"expo": {
"name": "src",
"slug": "src",
"version": "1.0.0",
"orientation": "portrait",
"icon": "./app/assets/icon.png",
"splash": {
"image": "./app/assets/splash.png",
"resizeMode": "contain",
"backgroundColor": "#ffffff"
},
"updates": {
"fallbackToCacheTimeout": 0
},
"assetBundlePatterns": [
"**/*"
],
"ios": {
"supportsTablet": true
},
"android": {
"adaptiveIcon": {
"foregroundImage": "./app/assets/adaptive-icon.png",
"backgroundColor": "#FFFFFF"
}
},
"web": {
"favicon": "./app/assets/favicon.png"
}
}
}

BIN
src/app/assets/adaptive-icon.png

After

Width: 1024  |  Height: 1024  |  Size: 17 KiB

BIN
src/app/assets/favicon.png

After

Width: 48  |  Height: 48  |  Size: 1.4 KiB

BIN
src/app/assets/icon.png

After

Width: 1024  |  Height: 1024  |  Size: 22 KiB

BIN
src/app/assets/splash.png

After

Width: 1284  |  Height: 2778  |  Size: 47 KiB

BIN
src/app/assets/wp6.jpg

After

Width: 1170  |  Height: 325  |  Size: 315 KiB

10
src/app/config/colors.js

@ -0,0 +1,10 @@
export default {
primary: "#fc5c65",
secondary: "#4ecdc4",
black: "#000",
white: "#fff",
medium: "#6e6969",
light: "#f8f4f4",
dark: "#0c0c0c",
danger: "#ff5252",
};

53
src/app/screens/ViewImageScreen.js

@ -0,0 +1,53 @@
import React from "react";
import { Image, StyleSheet, View } from "react-native";
import MapView from 'react-native-maps';
import colors from "../config/colors";
function ViewImageScreen(props) {
return (
<View style={styles.container}>
<View style={styles.closeIcon}></View>
<View style={styles.deleteIcon}></View>
<MapView style={styles.mapStyle} />
<Image
resizeMode="contain"
style={styles.image}
source={require("../assets/wp6.jpg")}
/>
</View>
);
}
const styles = StyleSheet.create({
closeIcon: {
width: 50,
height: 50,
backgroundColor: colors.primary,
position: "absolute",
top: 40,
left: 30,
},
container: {
backgroundColor: colors.black,
flex: 1,
},
deleteIcon: {
width: 50,
height: 50,
backgroundColor: colors.secondary,
position: "absolute",
top: 40,
right: 30,
},
image: {
width: "100%",
height: "100%",
},
mapStyle: {
width: 300,
height: 300,
},
});
export default ViewImageScreen;

6
src/babel.config.js

@ -0,0 +1,6 @@
module.exports = function(api) {
api.cache(true);
return {
presets: ['babel-preset-expo'],
};
};

23
src/package.json

@ -0,0 +1,23 @@
{
"main": "node_modules/expo/AppEntry.js",
"scripts": {
"start": "expo start",
"android": "expo start --android",
"ios": "expo start --ios",
"web": "expo start --web",
"eject": "expo eject"
},
"dependencies": {
"expo": "~39.0.2",
"expo-status-bar": "~1.0.2",
"react": "16.13.1",
"react-dom": "16.13.1",
"react-native": "https://github.com/expo/react-native/archive/sdk-39.0.4.tar.gz",
"react-native-maps": "0.27.1",
"react-native-web": "~0.13.12"
},
"devDependencies": {
"@babel/core": "~7.9.0"
},
"private": true
}

5694
src/yarn.lock
File diff suppressed because it is too large
View File

Loading…
Cancel
Save