Skip to content

Commit f47ea0c

Browse files
committed
update README
1 parent ff3dd0c commit f47ea0c

1 file changed

Lines changed: 1 addition & 8 deletions

File tree

README.md

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ On transform you'll see a message on stderr (same style as dotenv):
5454
◇ injected env (2) from .env
5555
```
5656

57-
Metro may prefix worker logs with `|`. Expo also prints its own `env: load .env` line — that is Expo's built-in loader, not this plugin.
57+
Metro may prefix worker logs with `|`.
5858

5959
Set `quiet: true` in the plugin options to suppress the `◇ injected env` message.
6060

@@ -258,8 +258,6 @@ For host/CI-only values, use `@env` imports — or put the key in `.env` and let
258258
</details>
259259
<details><summary>Expo</summary><br>
260260

261-
Expo has [built-in environment variable support](https://docs.expo.dev/guides/environment-variables/). Use this plugin when you want `@env` imports or multi-env files (e.g. `.env.staging` via `APP_ENV`).
262-
263261
```js
264262
// babel.config.js
265263
module.exports = function (api) {
@@ -435,11 +433,6 @@ For nextjs, you _must_ set `moduleName` to `react-native-dotenv`.
435433

436434
This Babel plugin reads your `.env` files at build time and replaces `@env` imports (and matching `process.env` references) with their values before the React Native bundle is generated. Runtime Node `process.env` is not available in the app the same way.
437435

438-
</details>
439-
<details><summary>Do I need this with Expo?</summary><br/>
440-
441-
Expo now has [built-in environment variable support](https://docs.expo.dev/guides/environment-variables/). Evaluate if you still need this plugin.
442-
443436
</details>
444437
<details><summary>Can I put secrets in `.env`?</summary><br/>
445438

0 commit comments

Comments
 (0)