Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: Add config for exposing environment variables (#318)
* add react-native config package * update pods * update sentry config * update docs
- Loading branch information
Showing
7 changed files
with
27 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
SENTRY_DSN= |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,11 @@ | ||
import { AppRegistry } from 'react-native'; | ||
import * as Sentry from '@sentry/react-native'; | ||
|
||
import Config from 'react-native-config'; | ||
import { name as appName } from './app.json'; | ||
|
||
import { SENTRY_TOKEN_URL } from './sentry'; | ||
|
||
import App from './src/app'; | ||
|
||
AppRegistry.registerComponent(appName, () => App); | ||
|
||
Sentry.init({ | ||
dsn: SENTRY_TOKEN_URL, | ||
dsn: Config.SENTRY_DSN, | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters