react-native-screens 3.23.0 → 3.25.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/android/src/main/java/com/swmansion/rnscreens/ScreenWindowTraits.kt +26 -6
- package/android/src/main/res/v33/anim-v33/rns_default_enter_out.xml +1 -1
- package/ios/RNSConvert.h +12 -14
- package/ios/RNSConvert.mm +49 -53
- package/ios/RNSFullWindowOverlay.h +6 -2
- package/ios/RNSFullWindowOverlay.mm +7 -8
- package/ios/RNSScreen.h +7 -3
- package/ios/RNSScreen.mm +33 -30
- package/ios/RNSScreenContainer.mm +9 -6
- package/ios/RNSScreenNavigationContainer.mm +5 -4
- package/ios/RNSScreenStack.mm +12 -9
- package/ios/RNSScreenStackHeaderConfig.mm +21 -20
- package/ios/RNSScreenStackHeaderSubview.mm +12 -11
- package/ios/RNSSearchBar.h +3 -0
- package/ios/RNSSearchBar.mm +27 -20
- package/lib/commonjs/native-stack/types.js.map +1 -1
- package/lib/commonjs/types.js.map +1 -1
- package/lib/module/native-stack/types.js.map +1 -1
- package/lib/module/types.js.map +1 -1
- package/lib/typescript/native-stack/types.d.ts +14 -12
- package/lib/typescript/types.d.ts +17 -15
- package/package.json +1 -1
- package/src/native-stack/types.tsx +14 -12
- package/src/types.tsx +17 -14
package/src/types.tsx
CHANGED
|
@@ -5,6 +5,7 @@ import {
|
|
|
5
5
|
View,
|
|
6
6
|
TargetedEvent,
|
|
7
7
|
TextInputFocusEventData,
|
|
8
|
+
ColorValue,
|
|
8
9
|
} from 'react-native';
|
|
9
10
|
|
|
10
11
|
export type SearchBarCommands = {
|
|
@@ -156,7 +157,7 @@ export interface ScreenProps extends ViewProps {
|
|
|
156
157
|
*
|
|
157
158
|
* @platform android
|
|
158
159
|
*/
|
|
159
|
-
navigationBarColor?:
|
|
160
|
+
navigationBarColor?: ColorValue;
|
|
160
161
|
/**
|
|
161
162
|
* Sets the visibility of the navigation bar. Defaults to `false`.
|
|
162
163
|
*
|
|
@@ -255,13 +256,15 @@ export interface ScreenProps extends ViewProps {
|
|
|
255
256
|
* Whether the sheet should expand to larger detent when scrolling.
|
|
256
257
|
* Works only when `stackPresentation` is set to `formSheet`.
|
|
257
258
|
* Defaults to `true`.
|
|
259
|
+
*
|
|
260
|
+
* @platform ios
|
|
258
261
|
*/
|
|
259
262
|
sheetExpandsWhenScrolledToEdge?: boolean;
|
|
260
263
|
/**
|
|
261
264
|
* The corner radius that the sheet will try to render with.
|
|
262
265
|
* Works only when `stackPresentation` is set to `formSheet`.
|
|
263
266
|
*
|
|
264
|
-
* If set to non-negative value it will try to render sheet with provided radius, else
|
|
267
|
+
* If set to non-negative value it will try to render sheet with provided radius, else it will apply system default.
|
|
265
268
|
*
|
|
266
269
|
* If left unset system default is used.
|
|
267
270
|
*
|
|
@@ -326,7 +329,7 @@ export interface ScreenProps extends ViewProps {
|
|
|
326
329
|
*
|
|
327
330
|
* @platform android
|
|
328
331
|
*/
|
|
329
|
-
statusBarColor?:
|
|
332
|
+
statusBarColor?: ColorValue;
|
|
330
333
|
/**
|
|
331
334
|
* Whether the status bar should be hidden on this screen. Requires enabling (or deleting) `View controller-based status bar appearance` in your Info.plist file on iOS. Defaults to `false`.
|
|
332
335
|
*/
|
|
@@ -388,7 +391,7 @@ export interface ScreenStackHeaderConfigProps extends ViewProps {
|
|
|
388
391
|
/**
|
|
389
392
|
* Controls the color of the navigation header.
|
|
390
393
|
*/
|
|
391
|
-
backgroundColor?:
|
|
394
|
+
backgroundColor?: ColorValue;
|
|
392
395
|
/**
|
|
393
396
|
* Title to display in the back button.
|
|
394
397
|
* @platform ios.
|
|
@@ -421,7 +424,7 @@ export interface ScreenStackHeaderConfigProps extends ViewProps {
|
|
|
421
424
|
/**
|
|
422
425
|
* Controls the color of items rendered on the header. This includes back icon, back text (iOS only) and title text. If you want the title to have different color use titleColor property.
|
|
423
426
|
*/
|
|
424
|
-
color?:
|
|
427
|
+
color?: ColorValue;
|
|
425
428
|
/**
|
|
426
429
|
* Whether the stack should be in rtl or ltr form.
|
|
427
430
|
*/
|
|
@@ -455,12 +458,12 @@ export interface ScreenStackHeaderConfigProps extends ViewProps {
|
|
|
455
458
|
/**
|
|
456
459
|
* Controls the color of the navigation header when the edge of any scrollable content reaches the matching edge of the navigation bar.
|
|
457
460
|
*/
|
|
458
|
-
largeTitleBackgroundColor?:
|
|
461
|
+
largeTitleBackgroundColor?: ColorValue;
|
|
459
462
|
/**
|
|
460
463
|
* Customize the color to be used for the large title. By default uses the titleColor property.
|
|
461
464
|
* @platform ios
|
|
462
465
|
*/
|
|
463
|
-
largeTitleColor?:
|
|
466
|
+
largeTitleColor?: ColorValue;
|
|
464
467
|
/**
|
|
465
468
|
* Customize font family to be used for the large title.
|
|
466
469
|
* @platform ios
|
|
@@ -495,7 +498,7 @@ export interface ScreenStackHeaderConfigProps extends ViewProps {
|
|
|
495
498
|
/**
|
|
496
499
|
* Allows for setting text color of the title.
|
|
497
500
|
*/
|
|
498
|
-
titleColor?:
|
|
501
|
+
titleColor?: ColorValue;
|
|
499
502
|
/**
|
|
500
503
|
* Customize font family to be used for the title.
|
|
501
504
|
*/
|
|
@@ -550,13 +553,13 @@ export interface SearchBarProps {
|
|
|
550
553
|
/**
|
|
551
554
|
* The search field background color
|
|
552
555
|
*/
|
|
553
|
-
barTintColor?:
|
|
556
|
+
barTintColor?: ColorValue;
|
|
554
557
|
/**
|
|
555
558
|
* The color for the cursor caret and cancel button text.
|
|
556
559
|
*
|
|
557
560
|
* @platform ios
|
|
558
561
|
*/
|
|
559
|
-
tintColor?:
|
|
562
|
+
tintColor?: ColorValue;
|
|
560
563
|
/**
|
|
561
564
|
* The text to be used instead of default `Cancel` button text
|
|
562
565
|
*
|
|
@@ -589,7 +592,7 @@ export interface SearchBarProps {
|
|
|
589
592
|
*/
|
|
590
593
|
inputType?: 'text' | 'phone' | 'number' | 'email';
|
|
591
594
|
/**
|
|
592
|
-
* Indicates whether to
|
|
595
|
+
* Indicates whether to obscure the underlying content
|
|
593
596
|
*/
|
|
594
597
|
obscureBackground?: boolean;
|
|
595
598
|
/**
|
|
@@ -651,19 +654,19 @@ export interface SearchBarProps {
|
|
|
651
654
|
/**
|
|
652
655
|
* The search field text color
|
|
653
656
|
*/
|
|
654
|
-
textColor?:
|
|
657
|
+
textColor?: ColorValue;
|
|
655
658
|
/**
|
|
656
659
|
* The search hint text color
|
|
657
660
|
*
|
|
658
661
|
* @plaform android
|
|
659
662
|
*/
|
|
660
|
-
hintTextColor?:
|
|
663
|
+
hintTextColor?: ColorValue;
|
|
661
664
|
/**
|
|
662
665
|
* The search and close icon color shown in the header
|
|
663
666
|
*
|
|
664
667
|
* @plaform android
|
|
665
668
|
*/
|
|
666
|
-
headerIconColor?:
|
|
669
|
+
headerIconColor?: ColorValue;
|
|
667
670
|
/**
|
|
668
671
|
* Show the search hint icon when search bar is focused
|
|
669
672
|
*
|