Skip to content

Commit

Permalink
feat: react-native-maps-my-location-direction
Browse files Browse the repository at this point in the history
  • Loading branch information
WayneKim92 committed Feb 28, 2024
1 parent 13080ee commit 46314fe
Show file tree
Hide file tree
Showing 70 changed files with 13,435 additions and 2,338 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The [example app](/example/) demonstrates usage of the library. You need to run

It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.

If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/MyLocationDirectionExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-my-location-direction`.
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/MyLocationDirectionExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-maps-my-location-direction`.

To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-my-location-direction` under `Android`.
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-maps-my-location-direction` under `Android`.

You can use various commands from the root directory to work with the project.

Expand Down
19 changes: 14 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,21 +1,30 @@
# react-native-my-location-direction
# react-native-maps-my-location-direction

Do you want to display your location and direction in react-native-maps?

## Installation

```sh
npm install react-native-my-location-direction
npm install react-native-maps-my-location-direction
# This package also requires the packages below:
npm install react-native-maps
npm install react-native-compass-heading
npm install react-native-geolocation-service
```

## Usage

```js
import { multiply } from 'react-native-my-location-direction';
import { MyLocationDirection } from 'react-native-maps-my-location-direction';

// ...

const result = await multiply(3, 7);
<MyLocationDirection
img={require('./assets/arrow.png')}
color={'#00AAFF'} // default #00AAFF
height={100} // default 100
width={100} // default 100
locationFetchInterval={1000} // default 1000
/>
```

## Contributing
Expand Down
86 changes: 0 additions & 86 deletions android/build.gradle

This file was deleted.

5 changes: 0 additions & 5 deletions android/gradle.properties

This file was deleted.

3 changes: 0 additions & 3 deletions android/src/main/AndroidManifest.xml

This file was deleted.

2 changes: 0 additions & 2 deletions android/src/main/AndroidManifestNew.xml

This file was deleted.

This file was deleted.

This file was deleted.

2 changes: 0 additions & 2 deletions example/.bundle/config

This file was deleted.

1 change: 0 additions & 1 deletion example/.watchmanconfig

This file was deleted.

9 changes: 0 additions & 9 deletions example/Gemfile

This file was deleted.

79 changes: 0 additions & 79 deletions example/README.md

This file was deleted.

Loading

0 comments on commit 46314fe

Please sign in to comment.