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
| package com.th3rdwave; | |
| import com.aakashns.reactnativedialogs.modules.DialogAndroid; | |
| import com.facebook.react.TurboReactPackage; | |
| import com.facebook.react.bridge.NativeModule; | |
| import com.facebook.react.bridge.ReactApplicationContext; | |
| import com.facebook.react.module.annotations.ReactModule; | |
| import com.facebook.react.module.annotations.ReactModuleList; | |
| import com.facebook.react.module.model.ReactModuleInfo; | |
| import com.facebook.react.module.model.ReactModuleInfoProvider; |
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
| package com.th3rdwave; | |
| import com.aakashns.reactnativedialogs.modules.DialogAndroid; | |
| import com.facebook.react.TurboReactPackage; | |
| import com.facebook.react.bridge.NativeModule; | |
| import com.facebook.react.bridge.ReactApplicationContext; | |
| import com.facebook.react.module.annotations.ReactModule; | |
| import com.facebook.react.module.model.ReactModuleInfo; | |
| import com.facebook.react.module.model.ReactModuleInfoProvider; | |
| import com.facebook.react.modules.statusbar.StatusBarModule; |
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
| Support Library class | Android X class | |
|---|---|---|
| android.support.v8.renderscript.Allocation | android.renderscript.Allocation | |
| android.support.v8.renderscript.Element | android.renderscript.Element | |
| android.support.v8.renderscript.RenderScript | android.renderscript.RenderScript | |
| android.support.v8.renderscript.ScriptIntrinsicBlur | android.renderscript.ScriptIntrinsicBlur | |
| android.support.transition.AnimatorUtils | androidx.transition.AnimatorUtils | |
| android.support.transition.ArcMotion | androidx.transition.ArcMotion | |
| android.support.transition.AutoTransition | androidx.transition.AutoTransition | |
| android.support.transition.ChangeBounds | androidx.transition.ChangeBounds | |
| android.support.transition.ChangeClipBounds | androidx.transition.ChangeClipBounds |
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 path = require('path'); | |
| const glob = require('glob'); | |
| const fs = require('fs'); | |
| const loadMetroConfig = require('@react-native-community/cli/build/tools/loadMetroConfig') | |
| .default; | |
| const loadConfig = require('@react-native-community/cli/build/tools/getLegacyConfig') | |
| .default; | |
| const Server = require('metro/src/Server'); |
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 * as React from 'react'; | |
| /** | |
| * Like useEffect but called only on updates. | |
| */ | |
| export function useUpdateEffect( | |
| effect: React.EffectCallback, | |
| deps?: ReadonlyArray<any>, | |
| ): void { | |
| const mounted = React.useRef(false); |
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 DISK_CACHE_ENABLED = true; | |
| const ONE_DAY = 24 * 60 * 60 * 1000; | |
| const MAX_STORE_SIZE = 1 * 1024 * 1024; // 1mb, TODO: figure out how big this can be. | |
| const RELAY_STORE_KEY = 'relay_store'; | |
| const RELAY_STORE_META_KEY = 'relay_store_meta'; | |
| const DEFAULT_META = { | |
| lastGC: Date.now(), | |
| environment: getConfig().environment, | |
| appVersion: Device.version(), | |
| }; |
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
| ... | |
| - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions | |
| { | |
| int64_t startTime = CACurrentMediaTime() * 1000; | |
| // Create root view code | |
| ... | |
| [[rootView.bridge moduleForName:@"PerfLogger"] setStartTime:startTime]; |
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
| Undefined symbols for architecture x86_64: | |
| "_JSClassCreate", referenced from: | |
| facebook::jsc::JSCRuntime::createObject(std::__1::shared_ptr<facebook::jsi::HostObject>)::$_0::operator()() const in libReact.a(JSCRuntime.o) | |
| facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::$_1::operator()() const in libReact.a(JSCRuntime.o) | |
| "_JSContextGetGlobalObject", referenced from: | |
| facebook::jsc::JSCRuntime::global() in libReact.a(JSCRuntime.o) | |
| facebook::jsc::JSCRuntime::createFunctionFromHostFunction(facebook::jsi::PropNameID const&, unsigned int, std::__1::function<facebook::jsi::Value (facebook::jsi::Runtime&, facebook::jsi::Value const&, facebook::jsi::Value const*, unsigned long)>)::HostFunctionMetadata::initialize(OpaqueJSContext const*, OpaqueJSValue*) in libReact.a(JSCRuntime.o) | |
| "_JSEvaluateScr |
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
| // @flow | |
| import * as React from 'react'; | |
| import { Dimensions as RNDimensions } from 'react-native'; | |
| import hoistStatics from 'hoist-non-react-statics'; | |
| export type Metrics = $ReadOnly<{| | |
| width: number, | |
| height: number, | |
| |}>; |