Skip to content

Commit

Permalink
Merge pull request #54 from yeukfei02/dev
Browse files Browse the repository at this point in the history
fix: 🐛 remove map view
  • Loading branch information
yeukfei02 authored May 2, 2022
2 parents f4f5479 + 65eab98 commit 6e2835b
Show file tree
Hide file tree
Showing 7 changed files with 1 addition and 321 deletions.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
"react-dom": "17.0.1",
"react-native": "0.64.3",
"react-native-gesture-handler": "~1.10.2",
"react-native-maps": "0.28.1",
"react-native-paper": "^4.3.1",
"react-native-reanimated": "~2.2.0",
"react-native-safe-area-context": "3.3.2",
Expand Down
4 changes: 1 addition & 3 deletions src/components/busArrivalDetails/BusArrivalDetails.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -126,9 +126,7 @@ function BusArrivalDetails(props: any): JSX.Element {

const handleBusNumberClick = (busNumber: string) => {
if (busNumber) {
props.navigation.navigate(`BusMapView`, {
busServiceNo: busNumber,
});
console.log('busNumber = ', busNumber);
}
};

Expand Down
299 changes: 0 additions & 299 deletions src/components/busMapView/BusMapView.tsx

This file was deleted.

2 changes: 0 additions & 2 deletions src/components/favouritesView/FavouritesView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createStackNavigator } from '@react-navigation/stack';

import Favourites from '../favourites/Favourites';
import BusArrivalDetails from '../busArrivalDetails/BusArrivalDetails';
import BusMapView from '../busMapView/BusMapView';

const Stack = createStackNavigator();

Expand All @@ -14,7 +13,6 @@ function FavouritesView(): JSX.Element {
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Favourites" component={Favourites} />
<Stack.Screen name="BusArrivalDetails" component={BusArrivalDetails} />
<Stack.Screen name="BusMapView" component={BusMapView} />
</Stack.Navigator>
</NavigationContainer>
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/nearMeView/NearMeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createStackNavigator } from '@react-navigation/stack';

import NearMe from '../nearMe/NearMe';
import BusArrivalDetails from '../busArrivalDetails/BusArrivalDetails';
import BusMapView from '../busMapView/BusMapView';

const Stack = createStackNavigator();

Expand All @@ -14,7 +13,6 @@ function NearMeView(): JSX.Element {
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="NearMe" component={NearMe} />
<Stack.Screen name="BusArrivalDetails" component={BusArrivalDetails} />
<Stack.Screen name="BusMapView" component={BusMapView} />
</Stack.Navigator>
</NavigationContainer>
);
Expand Down
2 changes: 0 additions & 2 deletions src/components/searchView/SearchView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { createStackNavigator } from '@react-navigation/stack';

import Search from '../search/Search';
import BusArrivalDetails from '../busArrivalDetails/BusArrivalDetails';
import BusMapView from '../busMapView/BusMapView';

const Stack = createStackNavigator();

Expand All @@ -14,7 +13,6 @@ function SearchView(): JSX.Element {
<Stack.Navigator screenOptions={{ headerShown: false }}>
<Stack.Screen name="Search" component={Search} />
<Stack.Screen name="BusArrivalDetails" component={BusArrivalDetails} />
<Stack.Screen name="BusMapView" component={BusMapView} />
</Stack.Navigator>
</NavigationContainer>
);
Expand Down
12 changes: 0 additions & 12 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -2330,11 +2330,6 @@
"@types/cheerio" "*"
"@types/react" "*"

"@types/geojson@^7946.0.7":
version "7946.0.8"
resolved "https://registry.yarnpkg.com/@types/geojson/-/geojson-7946.0.8.tgz#30744afdb385e2945e22f3b033f897f76b1f12ca"
integrity sha512-1rkryxURpr6aWP7R786/UQOkJ3PcpQiWkAXBmdWc7ryFWqN6a4xfK7BtjXvFBKO9LjQ+MWQSWxYeZX1OApnArA==

"@types/graceful-fs@^4.1.2":
version "4.1.4"
resolved "https://registry.yarnpkg.com/@types/graceful-fs/-/graceful-fs-4.1.4.tgz#4ff9f641a7c6d1a3508ff88bc3141b152772e753"
Expand Down Expand Up @@ -8535,13 +8530,6 @@ react-native-iphone-x-helper@^1.3.0:
resolved "https://registry.yarnpkg.com/react-native-iphone-x-helper/-/react-native-iphone-x-helper-1.3.0.tgz#84fd13e6b89cc3aa4daa80ec514bf15cb724d86d"
integrity sha512-+/bcZWFeZt0xSS/+3CHM5K7qPL4vDO/3ARLIowzFpUPGZiPsv9+NET+XNqqseRYwFJwYMmtX+Q4TZKxAVy09ew==

react-native-maps@0.28.1:
version "0.28.1"
resolved "https://registry.yarnpkg.com/react-native-maps/-/react-native-maps-0.28.1.tgz#f3d9a919f403f1103a70e94f651462e65c7ca6db"
integrity sha512-Ytcc8ZK7Pp5oU1gbRgtXKvl5hIlTa1F7J/bEPeS1Ch/ad9/3gHP+uC/pNfe2Ava90nXqZ+ATIFTF2uVcTMogWg==
dependencies:
"@types/geojson" "^7946.0.7"

react-native-paper@^4.3.1:
version "4.3.1"
resolved "https://registry.yarnpkg.com/react-native-paper/-/react-native-paper-4.3.1.tgz#2c230a29b077fe0a89c2d192c22f91f300311b27"
Expand Down

0 comments on commit 6e2835b

Please sign in to comment.