Skip to content

Commit b5ac9f8

Browse files
Added for typescript path resolution issues in tsconfig.json
1 parent a3233c5 commit b5ac9f8

2 files changed

Lines changed: 5 additions & 2 deletions

File tree

example/tsconfig.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
{
22
"compilerOptions": {
3-
"jsx": "react"
3+
"baseUrl": "./",
4+
"paths": {
5+
"react-native-situm-plugin": ["../src/index"]
6+
}
47
},
58
"extends": "@tsconfig/react-native/tsconfig.json"
69
}

src/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ import invariant from "invariant";
22
import { NativeEventEmitter, NativeModules, Platform } from "react-native";
33

44
import packageJson from "./../package.json";
5-
import {
5+
import type {
66
Building,
77
Floor,
88
Geofence,

0 commit comments

Comments
 (0)