Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion example/ios/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ target 'RNMapboxGLExample' do
pod 'Folly', :podspec => "#{rn_path}/third-party-podspecs/Folly.podspec"

# Mapbox
pod 'react-native-mapbox-gl', :path => '../node_modules/@mapbox/react-native-mapbox-gl'
pod 'react-native-mapbox-gl', :path => '../node_modules/@react-native-mapbox/maps'

# RN-Vector-Icons
pod 'RNVectorIcons', :path => '../node_modules/react-native-vector-icons'
Expand Down
2 changes: 1 addition & 1 deletion example/ios/RNMapboxGLExample.xcodeproj/project.pbxproj
Original file line number Diff line number Diff line change
Expand Up @@ -1291,7 +1291,7 @@
);
inputPaths = (
"${SRCROOT}/Pods/Target Support Files/Pods-RNMapboxGLExample/Pods-RNMapboxGLExample-frameworks.sh",
"${PODS_ROOT}/../../node_modules/@mapbox/react-native-mapbox-gl/ios/Mapbox.framework",
"${PODS_ROOT}/../../node_modules/@react-native-mapbox/maps/ios/Mapbox.framework",
);
name = "[CP] Embed Pods Frameworks";
outputPaths = (
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
},
"dependencies": {
"@mapbox/geo-viewport": "^0.4.0",
"@mapbox/react-native-mapbox-gl": "file:../mapbox-react-native-mapbox-gl-6.1.4.tgz",
"@react-native-mapbox/maps": "file:../react-native-mapbox-maps-7.0.0.tgz",
"@turf/along": "^5.1.5",
"@turf/bearing": "^5.1.5",
"@turf/distance": "^5.1.5",
Expand Down
2 changes: 1 addition & 1 deletion example/src/App.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import {
FlatList,
Modal,
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ChoroplethLayerByZoomLevel.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/CreateOfflineRegion.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import {
Dimensions,
StyleSheet,
} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import geoViewport from '@mapbox/geo-viewport';

import sheet from '../styles/sheet';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/CustomIcon.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import exampleIcon from '../assets/example.png';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/CustomVectorSource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/DataDrivenCircleColors.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/DriveTheLine.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import {View, StyleSheet} from 'react-native';
import {Button} from 'react-native-elements';
import {lineString as makeLineString} from '@turf/helpers';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/EarthQuakes.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {SF_OFFICE_COORDINATE} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/FitBounds.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/FlyTo.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Alert} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/GeoJSONSource.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import gridPattern from '../assets/grid_pattern.png';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/GetCenter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import BaseExamplePropTypes from './common/BaseExamplePropTypes';
import Page from './common/Page';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/GetZoom.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import BaseExamplePropTypes from './common/BaseExamplePropTypes';
import Page from './common/Page';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ImageOverlay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import radar0 from '../assets/radar.png';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/IndoorBuilding.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {View, StyleSheet} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import {Slider} from 'react-native-elements';

import sheet from '../styles/sheet';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/PointInMapView.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import BaseExamplePropTypes from './common/BaseExamplePropTypes';
import Page from './common/Page';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/QueryAtPoint.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import nycJSON from '../assets/nyc_geojson.json';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/QueryWithRect.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import nycJSON from '../assets/nyc_geojson.json';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/SetBearing.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/SetPitch.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/SetUserLocationVerticalAlignment.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {onSortOptions} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/SetUserTrackingModes.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {onSortOptions} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ShapeSourceIcon.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import exampleIcon from '../assets/example.png';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ShowClick.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {DEFAULT_CENTER_COORDINATE} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ShowMap.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {onSortOptions} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ShowPointAnnotation.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Animated, View, Text, StyleSheet} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/ShowRegionChange.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import {DEFAULT_CENTER_COORDINATE, SF_OFFICE_COORDINATE} from '../utils';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/TakeSnapshot.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import {
View,
Image,
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/TakeSnapshotWithMap.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {StyleSheet, View, Text, TouchableOpacity, Image} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import colors from '../styles/colors';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/TwoByTwo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import smileyFaceGeoJSON from '../assets/smiley_face.json';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/UserLocationChange.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {Text} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';

Expand Down
2 changes: 1 addition & 1 deletion example/src/components/WatercolorRasterTiles.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React from 'react';
import {View, StyleSheet} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import {Slider} from 'react-native-elements';

import sheet from '../styles/sheet';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/YoYo.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import React from 'react';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

import sheet from '../styles/sheet';
import colors from '../styles/colors';
Expand Down
2 changes: 1 addition & 1 deletion example/src/components/common/PulseCircleLayer.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import React from 'react';
import PropTypes from 'prop-types';
import {Animated} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';

const styles = MapboxGL.StyleSheet.create({
innerCircle: {
Expand Down
2 changes: 1 addition & 1 deletion example/src/utils/RouteSimulator.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import {Animated} from 'react-native';
import MapboxGL from '@mapbox/react-native-mapbox-gl';
import MapboxGL from '@react-native-mapbox/maps';
import along from '@turf/along';
import findDistance from '@turf/distance';

Expand Down