react-native-screens 3.15.0 → 3.16.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +34 -1
- package/RNScreens.podspec +1 -4
- package/android/build.gradle +1 -1
- package/android/src/main/java/com/swmansion/rnscreens/ScreenContainer.kt +50 -21
- package/android/src/main/java/com/swmansion/rnscreens/ScreenFragment.kt +22 -21
- package/android/src/main/java/com/swmansion/rnscreens/ScreenStack.kt +7 -5
- package/android/src/main/java/com/swmansion/rnscreens/ScreenStackHeaderConfig.kt +1 -2
- package/android/src/main/java/com/swmansion/rnscreens/ScreenStackViewManager.kt +9 -0
- package/android/src/main/java/com/swmansion/rnscreens/ScreenViewManager.kt +3 -6
- package/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt +1 -1
- package/ios/RNSScreen.h +1 -0
- package/ios/RNSScreen.mm +24 -4
- package/ios/RNSScreenStack.mm +2 -2
- package/ios/RNSScreenStackHeaderConfig.mm +2 -2
- package/lib/commonjs/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/commonjs/index.js +4 -1
- package/lib/commonjs/index.js.map +1 -1
- package/lib/commonjs/index.native.js +36 -30
- package/lib/commonjs/index.native.js.map +1 -1
- package/lib/commonjs/native-stack/views/NativeStackView.js +3 -1
- package/lib/commonjs/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js +1 -1
- package/lib/commonjs/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
- package/lib/commonjs/reanimated/ReanimatedScreen.js +1 -1
- package/lib/commonjs/reanimated/ReanimatedScreen.js.map +1 -1
- package/lib/module/fabric/ScreenNativeComponent.js.map +1 -1
- package/lib/module/index.js +1 -0
- package/lib/module/index.js.map +1 -1
- package/lib/module/index.native.js +37 -30
- package/lib/module/index.native.js.map +1 -1
- package/lib/module/native-stack/views/NativeStackView.js +3 -1
- package/lib/module/native-stack/views/NativeStackView.js.map +1 -1
- package/lib/module/reanimated/ReanimatedNativeStackScreen.js +2 -2
- package/lib/module/reanimated/ReanimatedNativeStackScreen.js.map +1 -1
- package/lib/module/reanimated/ReanimatedScreen.js +2 -2
- package/lib/module/reanimated/ReanimatedScreen.js.map +1 -1
- package/lib/typescript/index.d.ts +1 -0
- package/lib/typescript/native-stack/types.d.ts +5 -0
- package/lib/typescript/reanimated/ReanimatedNativeStackScreen.d.ts +1 -1
- package/lib/typescript/reanimated/ReanimatedScreen.d.ts +1 -1
- package/lib/typescript/types.d.ts +5 -0
- package/native-stack/README.md +6 -0
- package/package.json +1 -1
- package/src/fabric/ScreenNativeComponent.js +1 -1
- package/src/index.native.tsx +39 -26
- package/src/index.tsx +2 -0
- package/src/native-stack/types.tsx +5 -0
- package/src/native-stack/views/NativeStackView.tsx +2 -0
- package/src/reanimated/ReanimatedNativeStackScreen.tsx +2 -2
- package/src/reanimated/ReanimatedScreen.tsx +2 -2
- package/src/types.tsx +5 -0
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
2
|
+
import { InnerScreen, ScreenProps } from 'react-native-screens';
|
|
3
3
|
|
|
4
4
|
// @ts-ignore file to be used only if `react-native-reanimated` available in the project
|
|
5
5
|
import Animated from 'react-native-reanimated';
|
|
6
6
|
|
|
7
7
|
const AnimatedScreen = Animated.createAnimatedComponent(
|
|
8
|
-
(
|
|
8
|
+
(InnerScreen as unknown) as React.ComponentClass
|
|
9
9
|
);
|
|
10
10
|
|
|
11
11
|
const ReanimatedScreen = React.forwardRef<typeof AnimatedScreen, ScreenProps>(
|
package/src/types.tsx
CHANGED
|
@@ -269,6 +269,11 @@ export interface ScreenProps extends ViewProps {
|
|
|
269
269
|
* @platform ios
|
|
270
270
|
*/
|
|
271
271
|
transitionDuration?: number;
|
|
272
|
+
/**
|
|
273
|
+
* Whether inactive screens should be suspended from re-rendering. Defaults to `false`.
|
|
274
|
+
* When `enableFreeze()` is run at the top of the application defaults to `true`.
|
|
275
|
+
*/
|
|
276
|
+
freezeOnBlur?: boolean;
|
|
272
277
|
}
|
|
273
278
|
|
|
274
279
|
export interface ScreenContainerProps extends ViewProps {
|