diff --git a/README.md b/README.md index a5d40df..ceaf8b4 100644 --- a/README.md +++ b/README.md @@ -35,25 +35,20 @@ about the project [here](https://docs.pastvu.com/en/about). Platform source

+

+ + + +

+ # Resources Used [TaigaUI](https://taiga-ui.dev/) components were used in the design. [PastVu API](https://docs.pastvu.com/dev/api) is used to get photos. The map API is provided by the Google Map -[platform](https://developers.google.com/maps). - -# How to start? - -1. Generate your key to work with Google Maps API. - [Instruction](https://docs.expo.dev/versions/latest/sdk/map-view/#deploy-app-with-google-maps) -2. Clone and open this repository. -3. In the `SRC` folder, open the `app.json` file. Paste your key into the line - `android.config.googleMaps.apikey`. -4. Generate your development build. - [Instruction](https://docs.expo.dev/develop/development-builds/create-a-build/) -5. Install the development build on your device or emulator and run the - command: - - ``` - npx expo start --dev-client - ``` +[platform](https://developers.google.com/maps). + +# Plans + +1. Add Yandex maps. +2. Downloading photos to your device. diff --git a/code/api/PastVuApi.ts b/code/src/api/PastVuApi.ts similarity index 87% rename from code/api/PastVuApi.ts rename to code/src/api/PastVuApi.ts index 6de0421..9ac64e4 100644 --- a/code/api/PastVuApi.ts +++ b/code/src/api/PastVuApi.ts @@ -1,11 +1,11 @@ -import { IComments } from '../src/types/apiPhotoComment' +import { IComments } from '../types/apiPhotoComment' import { PhotoList, getPhotoListProps, itemPhotoArray -} from '../src/types/apiPhotoList' -import { getColor } from '../src/utils/getColor' -import { getAngle } from '../src/utils/getDirection' +} from '../types/apiPhotoList' +import { getColor } from '../utils/getColor' +import { getAngle } from '../utils/getDirection' export default class ApiService { static async getPhotoList(params: getPhotoListProps) { diff --git a/code/src/components/post/CommentList.tsx b/code/src/components/post/CommentList.tsx index efdf88b..1067f75 100644 --- a/code/src/components/post/CommentList.tsx +++ b/code/src/components/post/CommentList.tsx @@ -1,7 +1,7 @@ import React, { FC, useEffect, useState } from 'react' import styled from 'styled-components/native' import { Comment } from './Comment' -import ApiService from '../../../api/PastVuApi' +import ApiService from '../../api/PastVuApi' import { IComment, Users } from '../../types/apiPhotoComment' import AlertModalService from '../../utils/AlertModalService' diff --git a/code/src/screens/map/MapView.tsx b/code/src/screens/map/MapView.tsx index e0eeada..614c0c3 100644 --- a/code/src/screens/map/MapView.tsx +++ b/code/src/screens/map/MapView.tsx @@ -1,7 +1,7 @@ import React, { useState, useMemo } from 'react' import { Region } from 'react-native-maps' import { View } from 'react-native' -import ApiService from '../../../api/PastVuApi' +import ApiService from '../../api/PastVuApi' import { RootStackParamList } from '../../types/Navigation' import { observer } from 'mobx-react-lite' import { SafeAreaView } from 'react-native-safe-area-context'