react-geolocation-x

1.2.3 • Public • Published

About

This repository is based on react, it provide the function to get the current position with enhancing the shared-data that be across the components or more.

How to Use

import type { GeoData } from "react-geolocation-x";
import { useMyGeoLocation } from "react-geolocation-x";

const Comp = () => {
  /**
   * interface GeoData {
   *    latitude: number
   *    longitude: number
   *    error: Error | null
   * }
   */
  const data: GeoData = useMyGeoLocation();

  // ...
};

multi components

multi components

Timeline

I cannot give a detail timeline for some missing job, but i hope that i could have enough time to do that in future.

Request Code or Feeback

At present, the code source is private, not public. I am glad to see your feedback in PR or issue.

Package Sidebar

Install

npm i react-geolocation-x

Weekly Downloads

42

Version

1.2.3

License

MIT

Unpacked Size

335 kB

Total Files

9

Last publish

Collaborators

  • sharefe-demo