Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
import { Provider } from 'react-redux';
import { ApolloProvider } from 'react-apollo';
import { ThemeProvider } from 'styled-components';
import { ActionSheetProvider } from '@expo/react-native-action-sheet';
import { type ApolloClient } from 'apollo-client';
import { initStore } from './reducers/store';
import Toasts from './components/Toasts';
import { CurrentUser } from './components/WithCurrentUser';
import theme from '../shared/theme';
import { createClient } from '../shared/graphql';
import Login from './components/Login';
import TabBar from './views/TabBar';
import { authenticate } from './actions/authentication';
let sentry = Sentry.config(
'https://3bd8523edd5d43d7998f9b85562d6924@sentry.io/154812'
);
// Need to guard this for HMR to work
if (sentry && sentry.install) sentry.install();
export const store = initStore();
type State = {
authLoaded: ?boolean,
token: ?string,
client: ApolloClient,
};
class App extends React.Component<{}, State> {
state = {
import React from 'react';
import { Provider } from 'react-redux';
import Sentry from 'sentry-expo';
import { useScreens } from 'react-native-screens';
import { PersistGate } from 'redux-persist/integration/react';
import { store, persistor } from './store';
import Root from './src/Root';
// persistor.purge();
Sentry.config(
'https://018ed01c2b844dc1bab9fa5a84517b24@sentry.io/1409956'
).install();
useScreens();
const App = () => (
);
export default App;
import { Provider as MobXProvider } from "mobx-react/native";
import authStore from "./stores/AuthStore";
import eventStore from "./stores/EventStore";
import trexStore from "./stores/TrexStore";
import uiStore from "./stores/UIStore";
import App from "./components/App";
if (!global.__DEV__) {
// this guards against console usage in production builds since
// babel transform of remove console won't work with react-native preset
Object.keys(console).forEach(methodName => {
console[methodName] = () => {
/* noop */
};
});
Sentry.config(sentryURL).install();
}
class Main extends Component {
render() {
return (
);
}
}
import store from './config/store';
import Navigator from './config/routes';
import { images, fonts } from './config/assets';
import { operations as appOperations } from './reducers/app';
import { handleSentryError } from './shared/helpers';
import './config/styles';
import i18n from './config/i18n';
import { Api } from './services';
import { API_URL, SENTRY_URL } from '../env';
// Remove this once Sentry is correctly setup.
// Sentry.enableInExpoDevelopment = true;
Sentry.config(SENTRY_URL).install();
const WrappedNavigator = () => {
return ;
};
// AsyncStorage.clear()
const AppNavigator = compose(
translate('common', {
bindI18n: 'languageChanged',
bindStore: false,
}),
withNetworkGuard(),
withLocationGuard(),
withErrorModal(),
withCameraService(),
)(WrappedNavigator);
import { combineLatest, Subject} from 'rxjs';
import { debounceTime, switchMap, tap } from 'rxjs/operators';
import Sentry from 'sentry-expo';
import { AssignmentContext, AssignmentContextType } from './common/AssignmentContext';
import { saveBattlePlanTasks } from './common/BattlePlanTask';
import MyMICDS from './common/MyMICDS';
import { OnLoginContext, OnLoginContextType } from './common/OnLoginContext';
import Task, { createCustomTask } from './common/Task';
import { getUserBattlePlanTasks } from './common/User';
import { pickProps } from './common/Utils';
import AppContainer from './Navigation';
// Sentry error tracking
// Sentry.enableInExpoDevelopment = true;
Sentry.config('https://cfb0dd6414524ac39d87a8fac2bd55af@sentry.io/1396954').install();
export default class App extends React.Component<{}, AssignmentContextType & OnLoginContextType> {
savePlan = new Subject();
constructor(props: {}) {
super(props);
this.state = {
loggedIn: () => {
this.state.onLoggedIn.next();
},
onLoggedIn: new Subject(),
assignments: [],
onAssignmentsChange: new Subject(),
updateAssignments: this.updateNewAssignments,
constructor() {
super();
console.ignoredYellowBox = ['Setting a timer'];
Sentry.config(config.sentry.publicDSN).install();
}
public init() {
this.initialized = true;
SentryExpo.config(
'https://eada474aeba348a9aaad570be730e8e0:bb2a0776afe64f409a9edb752ca2d92d@sentry.io/253336'
).install();
}
import {connect, Provider} from "react-redux";
import {AppLoading, Asset} from "expo";
import HomePage from "./HomePage";
import GalleryPage from "./GalleryPage";
import ExplorePage from "./ExplorePage";
import ContactPage from "./ContactPage";
import MuralInfoPage from "./MuralInfoPage";
import SplashScreen from "./SplashScreen";
import {pink} from "./colors.js";
import {changeMarker, changeMarkerPrev, getArtists, getMurals, store, tourState,} from './redux';
import Sentry from 'sentry-expo';
import configString from "./sentry";
Sentry.config(configString).install();
class AppInner extends React.Component {
constructor(props) {
Text.defaultProps.allowFontScaling = false;
super(props);
props.getMurals();
props.getArtists();
}
render() {
return (
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,
loggingIn: PropTypes.bool.isRequired
Constants ,
FacebookAds } from 'expo';
import Sentry from 'sentry-expo';
import { Ionicons } from '@expo/vector-icons';
import Main from './screens/main';
import currency from './actions/currency';
import language from './actions/language';
import theme from './actions/theme';
import portfolio from './actions/portfolio';
import application from './configuration/application';
import database from './configuration/database';
import configuration from './configuration/store';
import analytics from './utilities/analytics';
import cache from './utilities/cache';
Sentry.config ( application.sentry ).install ();
const store = configuration ();
export default class Application extends React.Component {
state = {
cache : false
};
async setCache () {
try {
await cache.assets ({
images : [] ,
fonts : [