react-native-maps-navigation-ts
v0.2.2
Published
A helper and component library for react-native-maps that enables navigation support
Maintainers
Readme
react-native-maps-navigation-ts
Fork of this repo
Fixed issues and added TS support
Enhances React Native Maps with Realtime Navigation.
Please note that this module is usable but still under heavy development. Some properties and/or component names might change without notice.

Installation
React Native >= 0.49
yarn add react-native-maps-navigationMake sure you link the module before building:
react-native link react-native-maps-navigationExample
Head over to the example application to get started right away.
The example application uses most components and api modules of this library and gets you started in a useful direction.
Development
Linting and Formatting
This project uses ESLint and Prettier for code quality and formatting. Here are the available commands:
# Run ESLint
npm run lint
# Fix ESLint issues
npm run lint:fix
# Format code with Prettier
npm run format
# Check if formatting is correct
npm run format:check
# Run both formatting and linting fixes
npm run fixCommit Versioning
This project follows Conventional Commits specification for commit messages and uses semantic versioning for releases.
Committing Changes
Use the following command to create a properly formatted commit message:
npm run commitThis will launch an interactive prompt to help you create a commit message that follows the conventional commit format:
- feat: A new feature
- fix: A bug fix
- docs: Documentation only changes
- style: Changes that do not affect the meaning of the code
- refactor: A code change that neither fixes a bug nor adds a feature
- perf: A code change that improves performance
- test: Adding missing tests or correcting existing tests
- build: Changes to the build system or external dependencies
- ci: Changes to CI configuration files and scripts
Releasing New Versions
To create a new release with an automatically incremented version number and generated CHANGELOG:
# Automatically determine version bump based on commits
npm run release
# Explicitly specify version bump
npm run release:patch # 0.0.x
npm run release:minor # 0.x.0
npm run release:major # x.0.0This will:
- Bump the version in package.json
- Update the CHANGELOG.md
- Create a git tag
- Create a commit with the new version
Components
The library exposes the following modules and components.
The main component is MapViewNavigation:
<MapViewNavigation /> Component API
The library also ships with various UI components:
<DirectionInputBox /> Component API
<DirectionsListView /> Component API
<DurationDistanceLabel /> Component API
<DurationDistanceView /> Component API
<ManeuverView /> Component API
<ManeuverLabel /> Component API
<TravelModeBox /> Component API
These are internal components used by the library:
<ManeuverArrow /> Component API
<PositionMarker /> Component API
<RouterPolyline /> Component API
