Skip to content

buraksakalli/konum

Repository files navigation

Konum

npm version

konum

Konum (means location in Turkish) is a primary browser location provider for React.

Installation

yarn add konum
#or
npm i konum

Usage

import { useKonum } from "konum";

const { data, isAllowed, error } = useKonum();

Props

Props Type Description
data object It returns two attributes longitude and latitude.
isAllowed boolean It changes based on user's allow.
error string It returns error message

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.