# Using Doppler with React Native

**URL:** <https://community.doppler.com/t/using-doppler-with-react-native/152>\
**Category:** Need Help\
**Created:** [March 19, 2021, 8:42am UTC](https://community.doppler.com/t/using-doppler-with-react-native/152 "2021-03-19T08:42:13Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![cheunjm](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/cheunjm/32/33_2.png) [@cheunjm](https://community.doppler.com/u/cheunjm)\
**Post date:** [March 19, 2021, 8:42am UTC](https://community.doppler.com/t/using-doppler-with-react-native/152/1 "2021-03-19T08:42:13Z")

</div>

New user here!

Enjoying using doppler both locally / vercel / github actions and all others!

My team is trying to use doppler for react native locally, but seems like it’s not picking up any of the environment variables even after doppler setup.

I am currently running it with this command “doppler run – react-native start”, and any lead will be very helpful, thanks!

---

<div class="post-metadata">

**Author:** ![ryan-blunden](https://sea2.discourse-cdn.com/flex016/user_avatar/community.doppler.com/ryan-blunden/32/9_2.png) [@ryan-blunden](https://community.doppler.com/u/ryan-blunden)\
**Post date:** [March 24, 2021, 10:31pm UTC](https://community.doppler.com/t/using-doppler-with-react-native/152/4 "2021-03-24T22:31:17Z")

</div>

It seems the recommended approach is to use a `.env` file that can be consumed by a library such as [react-native-dotenv](https://github.com/goatandsheep/react-native-dotenv)

A typical workflow would be:

1. Add a pre-build step that calls ‘doppler secrets download —no-file —format env \> .env’ to save the secrets to a .env file.

2. Perform the build with **react-native-dotenv** parsing the secrets from the .env file.

3. Add a post-build step to remove the .env file.
