Skip to content

Commit

Permalink
readme
Browse files Browse the repository at this point in the history
  • Loading branch information
Семен Кузьмин authored and Семен Кузьмин committed Sep 14, 2023
1 parent 8e08689 commit f7e4dd9
Show file tree
Hide file tree
Showing 4 changed files with 18 additions and 23 deletions.
29 changes: 12 additions & 17 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,25 +35,20 @@ about the project [here](https://docs.pastvu.com/en/about). Platform source
<img src="img/6.jpg" width="250" />
</p>

<p align="center">
<img src="img/7.jpg" width="250" />
<img src="img/8.jpg" width="250" />
<img src="img/9.jpg" width="250" />
</p>

# 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.
8 changes: 4 additions & 4 deletions code/api/PastVuApi.ts → code/src/api/PastVuApi.ts
Original file line number Diff line number Diff line change
@@ -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) {
Expand Down
2 changes: 1 addition & 1 deletion code/src/components/post/CommentList.tsx
Original file line number Diff line number Diff line change
@@ -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'

Expand Down
2 changes: 1 addition & 1 deletion code/src/screens/map/MapView.tsx
Original file line number Diff line number Diff line change
@@ -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'
Expand Down

0 comments on commit f7e4dd9

Please # to comment.