react-native-reanimated
Advanced tools
Comparing version 3.17.0-nightly-20241219-1e9cdd2fa to 3.17.0-nightly-20241220-6713c4c29
@@ -94,3 +94,3 @@ 'use strict'; | ||
if (!isWeb()) { | ||
initializeUIRuntime(); | ||
initializeUIRuntime(ReanimatedModule); | ||
} | ||
@@ -97,0 +97,0 @@ let featuresConfig = { |
@@ -160,3 +160,7 @@ 'use strict'; | ||
} | ||
export function initializeUIRuntime() { | ||
export function initializeUIRuntime(ReanimatedModule) { | ||
if (!ReanimatedModule) { | ||
// eslint-disable-next-line reanimated/use-reanimated-error | ||
throw new Error('[Reanimated] Reanimated is trying to initialize the UI runtime without a valid ReanimatedModule'); | ||
} | ||
if (IS_JEST) { | ||
@@ -163,0 +167,0 @@ // requestAnimationFrame react-native jest's setup is incorrect as it polyfills |
@@ -0,5 +1,6 @@ | ||
import type { IReanimatedModule } from './commonTypes'; | ||
export declare function callGuardDEV<Args extends unknown[], ReturnValue>(fn: (...args: Args) => ReturnValue, ...args: Args): ReturnValue | void; | ||
export declare function setupCallGuard(): void; | ||
export declare function setupConsole(): void; | ||
export declare function initializeUIRuntime(): void; | ||
export declare function initializeUIRuntime(ReanimatedModule: IReanimatedModule): void; | ||
//# sourceMappingURL=initializers.d.ts.map |
{ | ||
"name": "react-native-reanimated", | ||
"version": "3.17.0-nightly-20241219-1e9cdd2fa", | ||
"version": "3.17.0-nightly-20241220-6713c4c29", | ||
"description": "More powerful alternative to Animated library for React Native.", | ||
@@ -5,0 +5,0 @@ "scripts": { |
@@ -158,3 +158,3 @@ 'use strict'; | ||
if (!isWeb()) { | ||
initializeUIRuntime(); | ||
initializeUIRuntime(ReanimatedModule); | ||
} | ||
@@ -161,0 +161,0 @@ |
@@ -18,2 +18,3 @@ 'use strict'; | ||
} from './logger'; | ||
import type { IReanimatedModule } from './commonTypes'; | ||
@@ -182,3 +183,9 @@ const IS_JEST = isJest(); | ||
export function initializeUIRuntime() { | ||
export function initializeUIRuntime(ReanimatedModule: IReanimatedModule) { | ||
if (!ReanimatedModule) { | ||
// eslint-disable-next-line reanimated/use-reanimated-error | ||
throw new Error( | ||
'[Reanimated] Reanimated is trying to initialize the UI runtime without a valid ReanimatedModule' | ||
); | ||
} | ||
if (IS_JEST) { | ||
@@ -185,0 +192,0 @@ // requestAnimationFrame react-native jest's setup is incorrect as it polyfills |
@@ -7,2 +7,2 @@ 'use strict'; | ||
*/ | ||
export const jsVersion = '3.17.0-nightly-20241219-1e9cdd2fa'; | ||
export const jsVersion = '3.17.0-nightly-20241220-6713c4c29'; |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3386271
50555