Skip to content

Commit

Permalink
Merge pull request lottie-react-native#828 from wandersonalwes/patch-1
Browse files Browse the repository at this point in the history
add correct import in documentation typescript
  • Loading branch information
emilioicai authored Dec 27, 2021
2 parents b6bf672 + 4b9d230 commit 0476fd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion docs/typescript.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ The usage of `LottieView` is not that different to its JavaScript counterpart, b
- Your `tsconfig.json` file defines `"esModuleInterop": false,`. In this case, you are forced to define your import as

```tsx
import LottieView = require("lottie-react-native");
const LottieView = require("lottie-react-native");
```

- Your `tsconfig.json` file defines `"esModuleInterop": true,` and `"allowSyntheticDefaultImports": true,` (the default is `true`). In this case, you can import lottie as:
Expand Down

0 comments on commit 0476fd7

Please sign in to comment.