This file contains hidden or 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
// imports... | |
@interface RocketSimLoader : NSObject | |
- (void)loadRocketSimConnect; | |
@end | |
@implementation RocketSimLoader |
This file contains hidden or 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
import { EventEmitter } from 'eventemitter3'; | |
import React, { useCallback, useEffect, useMemo, useRef, useState } from 'react'; | |
import { Text, View } from 'react-native'; | |
import { BottomSheetModal, BottomSheetModalProvider } from '@gorhom/bottom-sheet'; | |
import { useNavigation } from '@react-navigation/native'; | |
import { AuthStackScreens } from 'navigation/stacks/auth'; | |
import Button from 'common/Button'; |
This file contains hidden or 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
import React, { forwardRef, useCallback, useImperativeHandle } from 'react'; | |
import { PanGestureHandler } from 'react-native-gesture-handler'; | |
import Animated, { | |
runOnJS, | |
useAnimatedGestureHandler, | |
useAnimatedStyle, | |
useSharedValue, | |
withDelay, | |
withSequence, | |
withSpring, |
This file contains hidden or 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
import fs from 'fs'; | |
import path from 'path'; | |
import Environment from '../src/@types/env'; | |
const APP_ENV = process.env.APP_ENV ?? 'dev'; | |
const isDev = APP_ENV === 'dev'; | |
const envFile = path.join(__dirname, isDev ? '../.env' : `../.env.${APP_ENV}`); | |
(() => { |
This file contains hidden or 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
"scripts": { | |
"ios:staging": "APP_ENV=staging ts-node scripts/validate-env.ts && react-native run-ios --scheme MyReactNativeApp-Staging", | |
"ios:prod": "APP_ENV=prod ts-node scripts/validate-env.ts && react-native run-ios --scheme MyReactNativeApp", | |
"android:dev": "APP_ENV=dev ts-node scripts/validate-env.ts && react-native run-android --variant=devDebug --appIdSuffix=dev", | |
"android:qa": "APP_ENV=qa ts-node scripts/validate-env.ts && react-native run-android --variant=qaDebug --appIdSuffix=qa", | |
// ... other scripts | |
} |
This file contains hidden or 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
import z from 'zod'; | |
const NativeConfig = z.object({ | |
API_URL: z.string(), | |
BASE_URL: z.string(), | |
}); | |
export type NativeConfigType = z.infer<typeof NativeConfig>; | |
export default NativeConfig; |
This file contains hidden or 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
import { NativeConfigType } from './env'; | |
declare module 'react-native-config' { | |
export interface NativeConfig extends NativeConfigType {} | |
export const Config: NativeConfig; | |
export default Config; | |
} |
This file contains hidden or 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
yarn add -D ts-node | |
npm install ts-node --save-dev |
This file contains hidden or 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
yarn add react-native-config zod | |
npm i react-native-config zod |
This file contains hidden or 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
const admin = require('firebase-admin') | |
const request = require('request') | |
const config = require('../config') | |
const {JWT} = require('google-auth-library') | |
const dbConfig = config.database | |
const pg = require('pg') | |
/** | |
* @type {string} |
NewerOlder