---
title: "Discussion on \"How to add Environment variables in a React Native project with TS\" | Hashnode"
description: "Discussion on \"How to add Environment variables in a React Native project with TS\". The purpose of this blog post is to point out and explain the simplest and quickest way to make use of environment variables in your RN project."
url: "https://hashnode.com/posts/how-to-add-environment-variables-in-a-react-native-project-with-ts/611026bfb79d6a11366833b3"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [How to add Environment variables in a React Native project with TS](https://blog.vikrantbhat.com/how-to-add-environment-variables-in-a-react-native-project-with-ts?utm_source=hashnode&utm_medium=feed)

The purpose of this blog post is to point out and explain the simplest and quickest way to make use of environment variables in your RN project.

Aug 8, 2021 · 2 min read · blog.vikrantbhat.com  
Read the article

-   [#react-native](https://hashnode.com/tag/react-native)
-   [#guide](https://hashnode.com/tag/guide)
-   [#reactjs](https://hashnode.com/tag/reactjs)
-   [#tutorial](https://hashnode.com/tag/tutorial)

## Written by

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

@bhatvikrant · Delhi, India

  
[View profile](https://hashnode.com/@bhatvikrant)

The irony is, I am a web developer but I am shit scared of spiders. Javascript && React ⚛️

Senior Frontend Engineer @ Razorpay

## Responses 2

Markdown supported · ⌘↵ to post

[Henne J](https://hashnode.com/@Hennej2)

[Jul 6, 2023](https://hashnode.com/posts/how-to-add-environment-variables-in-a-react-native-project-with-ts/611026bfb79d6a11366833b3/comment/64a72adcd6052e06fc160078)

Thank you!! 🙏 Will adding the key, value pairs from.env to eas.json for an eas build work? Thanks!

[Aditi Shree](https://hashnode.com/@Aditi2610)

[Aug 9, 2021](https://hashnode.com/posts/how-to-add-environment-variables-in-a-react-native-project-with-ts/611026bfb79d6a11366833b3/comment/6110b0d1b79d6a1136683adf)

Very helpful, Thanks

[Vikrant Bhat](https://hashnode.com/@bhatvikrant)

[Aug 9, 2021](https://hashnode.com/posts/how-to-add-environment-variables-in-a-react-native-project-with-ts/611026bfb79d6a11366833b3/comment/6110b0d1b79d6a1136683adf#reply-6110c9f8528eff11aea8c065)

Thank you for reading [Aditi Shree](https://hashnode.com/@Aditi2610) !
