Skip to content
This repository has been archived by the owner on Feb 8, 2020. It is now read-only.

Commit

Permalink
docs: mark options as platform specific
Browse files Browse the repository at this point in the history
  • Loading branch information
satya164 committed Oct 8, 2019
1 parent b822c11 commit 78481be
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
1 change: 1 addition & 0 deletions packages/example/src/Screens/NativeStack.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ const styles = StyleSheet.create({
buttons: {
flexDirection: 'row',
padding: 8,
marginTop: 56,
},
button: {
margin: 8,
Expand Down
15 changes: 14 additions & 1 deletion packages/native-stack/src/types.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -60,6 +60,9 @@ export type NativeStackNavigationOptions = {
headerTitle?: string | (() => React.ReactNode);
/**
* Title to display in the back button.
* Only supported on iOS.
*
* @platform ios
*/
headerBackTitle?: string;
/**
Expand Down Expand Up @@ -114,13 +117,20 @@ export type NativeStackNavigationOptions = {
* Style object for header back title. Supported properties:
* - fontFamily
* - fontSize
*
* Only supported on iOS.
*
* @platform ios
*/
headerBackTitleStyle?: {
fontFamily?: string;
fontSize?: number;
};
/**
* Whether you can use gestures to dismiss this screen. Defaults to `true` on iOS, `false` on Android.
* Whether you can use gestures to dismiss this screen. Defaults to `true`.
* Only supported on iOS.
*
* @platform ios
*/
gestureEnabled?: boolean;
/**
Expand All @@ -129,6 +139,9 @@ export type NativeStackNavigationOptions = {
contentStyle?: StyleProp<ViewStyle>;
/**
* How should the screen be presented.
* Only supported on iOS.
*
* @platform ios
*/
presentation?: 'modal' | 'transparentModal' | 'push';
};
Expand Down

0 comments on commit 78481be

Please sign in to comment.