-
-
Notifications
You must be signed in to change notification settings - Fork 785
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: export useBottomSheetInternal, added animatedPosition and anim…
…atedIndex to useBottomSheet
- Loading branch information
Showing
11 changed files
with
34 additions
and
50 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,16 +1,6 @@ | ||
import type Animated from 'react-native-reanimated'; | ||
import type { ViewProps } from 'react-native'; | ||
import type { BottomSheetVariables } from '../../types'; | ||
|
||
export interface BottomSheetBackgroundProps | ||
extends Pick<ViewProps, 'pointerEvents' | 'style'> { | ||
/** | ||
* Current sheet position index. | ||
* @type Animated.SharedValue<number> | ||
*/ | ||
animatedIndex: Animated.SharedValue<number>; | ||
/** | ||
* Current sheet position. | ||
* @type Animated.SharedValue<number> | ||
*/ | ||
animatedPosition: Animated.SharedValue<number>; | ||
} | ||
extends Pick<ViewProps, 'pointerEvents' | 'style'>, | ||
BottomSheetVariables {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,3 @@ | ||
import type Animated from 'react-native-reanimated'; | ||
import type { BottomSheetVariables } from '../../types'; | ||
|
||
export interface BottomSheetHandleProps { | ||
/** | ||
* Current sheet position index. | ||
* @type Animated.Value<number> | ||
*/ | ||
animatedIndex: Animated.SharedValue<number>; | ||
/** | ||
* Current sheet position. | ||
* @type Animated.Value<number> | ||
*/ | ||
animatedPosition: Animated.SharedValue<number>; | ||
} | ||
export interface BottomSheetHandleProps extends BottomSheetVariables {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
import type { ComponentProps } from 'react'; | ||
import type { TextInput } from 'react-native-gesture-handler'; | ||
import type { TextInputProps } from 'react-native'; | ||
|
||
export interface BottomSheetTextInputProps extends ComponentProps<TextInput> {} | ||
export interface BottomSheetTextInputProps extends TextInputProps {} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,7 @@ | ||
import { createContext } from 'react'; | ||
import type { BottomSheetMethods } from '../types'; | ||
import type { BottomSheetMethods, BottomSheetVariables } from '../types'; | ||
|
||
export const BottomSheetContext = | ||
createContext<BottomSheetMethods | null>(null); | ||
createContext<(BottomSheetMethods & BottomSheetVariables) | null>(null); | ||
|
||
export const BottomSheetProvider = BottomSheetContext.Provider; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters