Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import Store from './state/Store';
import fonts from './styles/fonts';
import config from './utils/config';
import DownloadManager from './utils/DownloadManager';
import Data from './data/Data';
import {
EvilIcons,
FontAwesome,
MaterialIcons,
Ionicons,
Foundation,
} from '@expo/vector-icons';
// Setup Sentry
Sentry.enableInExpoDevelopment = config.sentryEnabledInDev;
Sentry.config(config.SENTRY_PUBLIC_DSN).install();
class AppContainer extends React.Component {
state = {
appIsReady: false,
firstLoad: config.firstLoad,
};
componentWillMount() {
this._loadAssetsAsync();
}
componentWillUnmount() {
this._downloadManager && this._downloadManager.teardown();
}
import React from 'react';
import Sentry from 'sentry-expo';
import { createAppContainer } from 'react-navigation';
import { RootStack } from './config/router';
// Remove this once Sentry is correctly setup.
Sentry.enableInExpoDevelopment = false;
Sentry.config(
'https://705f92b0edb44599b814955f3219c1cd@sentry.io/1367138',
).install();
// App Containers
const AppContainer = createAppContainer(RootStack);
export default class App extends React.Component {
render() {
return ;
}
}
// @flow
import Sentry from 'sentry-expo';
import config from './app/core/config/application';
if (config.sentry.dsn) {
Sentry.enableInExpoDevelopment = config.sentry.enableInExpoDevelopment;
Sentry.config(config.sentry.dsn).install();
}
export { default } from './app/core/src/navigation';
import Meteor, { createContainer } from "react-native-meteor";
import { Root } from "native-base";
import { Platform } from "react-native";
import Sentry from "sentry-expo";
import App from "../App";
import LoginSignup from "../screens/loginsignup";
import { startTimesync } from "../timesync";
import { fonts } from "../styles/base";
import env from "../env";
Meteor.connect(`ws://${env.host}/websocket`);
Sentry.enableInExpoDevelopment = true;
Sentry.config(
"https://558ee9c279d14a7a9798208f9511c04c:df9b198b53c24cc49ec9fcb182a10f61@sentry.io/301656"
).install();
Expo.AdMobInterstitial.setAdUnitID(
Platform.OS === "ios"
? env.adMobInterstitialIDIOS
: env.adMobInterstitialIDAndroid
);
if (env.env === "dev") {
Expo.AdMobInterstitial.setTestDeviceID("EMULATOR");
}
class Setup extends Component {
static propTypes = {
user: PropTypes.object,