You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -31,6 +31,9 @@ You need to have React [16.8.0](https://reactjs.org/blog/2019/02/06/react-v16.8.
31
31
npm install @ubilabs/google-maps-react-hooks -D
32
32
```
33
33
34
+
**NOTE FOR WINDOWS USERS**:
35
+
We are using [cross-env](https://github.com/kentcdodds/cross-env) for environment variables to work on all platforms. There is an issue that `npm` uses `cmd` by default. The workaround is to add `script-shell` to `powershell` in your `.npmrc`. Please follow [this setup](https://github.com/kentcdodds/cross-env/issues/192#issuecomment-513341729) to make it work.
36
+
34
37
## Library
35
38
36
39
The full Google Maps React Hooks library can be found in the [library directory](./library).
Copy file name to clipboardExpand all lines: library/README.md
+3Lines changed: 3 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -49,6 +49,9 @@ You need to have React [16.8.0](https://reactjs.org/blog/2019/02/06/react-v16.8.
49
49
npm install @ubilabs/google-maps-react-hooks -D
50
50
```
51
51
52
+
**NOTE FOR WINDOWS USERS**:
53
+
We are using [cross-env](https://github.com/kentcdodds/cross-env) for environment variables to work on all platforms. There is an issue that `npm` uses `cmd` by default. The workaround is to add `script-shell` to `powershell` in your `.npmrc`. Please follow [this setup](https://github.com/kentcdodds/cross-env/issues/192#issuecomment-513341729) to make it work.
54
+
52
55
## Map Usage
53
56
54
57
Import the `GoogleMapsProvider` and wrap it around your components.
0 commit comments