react-native-navigators
Advanced tools
Comparing version 0.0.1-beta.75 to 0.0.1-beta.76
@@ -49,3 +49,3 @@ import React, { PureComponent } from 'react'; | ||
return (<NativeStackScene key={key} transition={((_b = (_a = navigation.dangerouslyGetParent()) === null || _a === void 0 ? void 0 : _a.state) === null || _b === void 0 ? void 0 : _b.isTransitioning) ? | ||
(options.transition || NativeNavigatorTransitions.Default) : NativeNavigatorTransitions.None} closing={closingRouteKey === route.key} gestureEnabled={options.gestureEnabled !== false} translucent={options.translucent === true} transparent={options.transparent === true} popover={options.popover} onDidFocus={this.handleDidFocus} onDidBlur={this.handleDidBlur} route={route} style={options.cardStyle}> | ||
(options.transition || NativeNavigatorTransitions.Default) : NativeNavigatorTransitions.None} closing={closingRouteKey === route.key} gestureEnabled={options.gestureEnabled !== false} translucent={options.translucent === true} transparent={options.transparent === true} popover={options.popover} onDidFocus={this.handleDidFocus} onDidBlur={this.handleDidBlur} route={route} style={options.cardStyle} statusBarStyle={options.statusBarStyle} statusBarHidden={options.statusBarHidden}> | ||
<NativeStackSceneContainer> | ||
@@ -52,0 +52,0 @@ <NativeSceneView screenProps={screenProps} navigation={navigation} component={SceneComponent}/> |
@@ -15,8 +15,9 @@ import React, { useMemo } from 'react'; | ||
styles.container, | ||
{ backgroundColor: props.headerBackgroundColor, borderBottomColor: props.headerBorderColor } | ||
{ | ||
backgroundColor: props.headerBackgroundColor, | ||
borderBottomColor: props.headerBorderColor | ||
} | ||
], [props.headerBackgroundColor, props.headerBorderColor]); | ||
return (<View style={style}> | ||
{props.children} | ||
</View>); | ||
return <View style={style}>{props.children}</View>; | ||
} | ||
//# sourceMappingURL=NativeStackHeader.android.js.map |
@@ -26,9 +26,10 @@ import React, { useMemo } from 'react'; | ||
styles.container, | ||
props.type === NativeNavigationHeaderTypes.Center ? | ||
styles.center : (props.type === NativeNavigationHeaderTypes.Left ? styles.left : styles.right) | ||
props.type === NativeNavigationHeaderTypes.Center | ||
? styles.center | ||
: props.type === NativeNavigationHeaderTypes.Left | ||
? styles.left | ||
: styles.right | ||
], [props.type]); | ||
return (<View style={style}> | ||
{props.children} | ||
</View>); | ||
return <View style={style}>{props.children}</View>; | ||
} | ||
//# sourceMappingURL=NativeStackHeaderItem.android.js.map |
@@ -16,2 +16,4 @@ import { PureComponent } from 'react'; | ||
style?: StyleProp<ViewStyle>; | ||
statusBarStyle?: number; | ||
statusBarHidden?: number | boolean; | ||
} | ||
@@ -18,0 +20,0 @@ export default class NativeStackNavigator extends PureComponent<NativeStackNavigatorProps> { |
@@ -22,4 +22,11 @@ import React, { PureComponent } from 'react'; | ||
render() { | ||
const { closing, translucent, transparent, transition, gestureEnabled, popover, style } = this.props; | ||
return (<RNNativeStackScene closing={closing} translucent={translucent} transparent={transparent} transition={transition} gestureEnabled={gestureEnabled} popover={popover} onDidFocus={this.onDidFocus} onDidBlur={this.onDidBlur} style={style ? [style, StyleSheet.absoluteFill] : StyleSheet.absoluteFill}> | ||
const { closing, translucent, transparent, transition, gestureEnabled, popover, style, statusBarStyle, statusBarHidden } = this.props; | ||
let statusBarHiddenValue = -1; | ||
if (typeof statusBarHidden === 'number') { | ||
statusBarHiddenValue = statusBarHidden; | ||
} | ||
else if (typeof statusBarHidden === 'boolean') { | ||
statusBarHiddenValue = statusBarHidden ? 1 : 0; | ||
} | ||
return (<RNNativeStackScene closing={closing} translucent={translucent} transparent={transparent} transition={transition} gestureEnabled={gestureEnabled} popover={popover} onDidFocus={this.onDidFocus} onDidBlur={this.onDidBlur} style={style ? [style, StyleSheet.absoluteFill] : StyleSheet.absoluteFill} statusBarStyle={typeof statusBarStyle === 'number' ? statusBarStyle : -1} statusBarHidden={statusBarHiddenValue}> | ||
{this.props.children} | ||
@@ -29,3 +36,3 @@ </RNNativeStackScene>); | ||
} | ||
const RNNativeStackScene = requireNativeComponent('RNNativeStackScene'); | ||
const RNNativeStackScene = requireNativeComponent('RNNativeScene'); | ||
//# sourceMappingURL=NativeStackScene.js.map |
@@ -10,4 +10,6 @@ import React from 'react'; | ||
export default function NativeStackSceneContainer(props) { | ||
return <View style={styles.container} collapsable={false}>{props.children}</View>; | ||
return (<View style={styles.container} collapsable={false}> | ||
{props.children} | ||
</View>); | ||
} | ||
//# sourceMappingURL=NativeStackSceneContainer.android.js.map |
@@ -25,2 +25,4 @@ import { ReactNode } from 'react'; | ||
popover?: NativeNavigationPopover; | ||
statusBarStyle?: number; | ||
statusBarHidden?: number | boolean; | ||
} | ||
@@ -27,0 +29,0 @@ export interface NavigationNativeRouterConfig { |
{ | ||
"version": "0.0.1-beta.75", | ||
"version": "0.0.1-beta.76", | ||
"name": "react-native-navigators", | ||
@@ -4,0 +4,0 @@ "repository": { |
@@ -32,2 +32,4 @@ import { ReactNode } from 'react'; | ||
popover?: NativeNavigationPopover; | ||
statusBarStyle?: number; | ||
statusBarHidden?: number | boolean; | ||
} | ||
@@ -34,0 +36,0 @@ |
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
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
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
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
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
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
2249865
414
2968