appandflow / appandflow/react-navigation-bottom-sheet

Lack of stackBehavior property

未關閉
#5 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
TypeScript
星號
496
分支
24
PR 合併指標
30 天內沒有已合併 PR

描述

Lack of [stackBehavior](https://gorhom.github.io/react-native-bottom-sheet/modal/props/#stackbehavior) property

Here is the diff that solved my problem:

```diff
diff --git a/node_modules/@th3rdwave/react-navigation-bottom-sheet/lib/typescript/types.d.ts b/node_modules/@th3rdwave/react-navigation-bottom-sheet/lib/typescript/types.d.ts
index e03cf4e..d807543 100644
--- a/node_modules/@th3rdwave/react-navigation-bottom-sheet/lib/typescript/types.d.ts
+++ b/node_modules/@th3rdwave/react-navigation-bottom-sheet/lib/typescript/types.d.ts
@@ -31,6 +31,8 @@ export declare type BottomSheetNavigationOptions = Omit
*/
snapPoints?: Array;
+
+ stackBehavior?: 'push' | 'replace'
};
export declare type BottomSheetNavigatorProps = DefaultNavigatorOptions, BottomSheetNavigationOptions, BottomSheetNavigationEventMap> & BottomSheetNavigationConfig;
export declare type BottomSheetDescriptor = Descriptor, RouteProp>;
diff --git a/node_modules/@th3rdwave/react-navigation-bottom-sheet/src/types.tsx b/node_modules/@th3rdwave/react-navigation-bottom-sheet/src/types.tsx
index eb22fea..78af81b 100644
--- a/node_modules/@th3rdwave/react-navigation-bottom-sheet/src/types.tsx
+++ b/node_modules/@th3rdwave/react-navigation-bottom-sheet/src/types.tsx
@@ -89,6 +89,8 @@ export type BottomSheetNavigationOptions = Omit<
* @type Array
*/
snapPoints?: Array;
+
+ stackBehavior?: 'push' | 'replace'
};

export type BottomSheetNavigatorProps = DefaultNavigatorOptions<
```

貢獻指南

開啟貢獻指南

評估

這個 Issue 還沒有評估資料。

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。