Skip to content

Commit

Permalink
pending lib cleanup (#142)
Browse files Browse the repository at this point in the history
* gh-137

* fixes gh-136

* fixes gh-120

* fixes gh-30
  • Loading branch information
goatandsheep committed Apr 6, 2021
1 parent 24c5929 commit 5495a21
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions .github/ISSUE_TEMPLATE/bug_report.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ assignees: goatandsheep

---

- [x] Asked question in discussions
- [x] Tried the troubleshooting Wiki
- [x] Followed the migration Wiki

Expand Down
8 changes: 8 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -74,6 +74,8 @@ fetch(`${API_URL}/users`, {
})
```

Also preview [the upcoming test app](https://github.com/goatandsheep/chatkitty-example-react-native/).

## White and black lists

It is possible to limit the scope of env variables that will be imported by specifying a `whitelist` and/or a `blacklist` as an array of strings.
Expand Down Expand Up @@ -241,6 +243,10 @@ or

`expo r -c`

or

[react-native-clean-project](https://www.npmjs.com/package/react-native-clean-project)

Maybe a solution for updating package.json scripts:

> "cc": "rimraf node_modules/.cache/babel-loader/*,",
Expand All @@ -251,6 +257,8 @@ Or you can override the default `cacheIdentifier` to include some of your enviro

The tests that use `require('@env')` are also not passing.

For nextjs, you _must_ set `moduleName` to `react-native-dotenv`.

## Credits

* Based on [David Chang](https://github.com/zetachang)’s works on [babel-plugin-dotenv](https://github.com/zetachang/react-native-dotenv/tree/master/babel-plugin-dotenv).
Expand Down

0 comments on commit 5495a21

Please sign in to comment.