Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "react-native-modalize",
"version": "2.1.1",
"version": "2.1.2",
"description": "A highly customizable modal/bottom sheet that loves scrolling content.",
"main": "lib/index.js",
"types": "./lib/index.d.ts",
Expand Down
5 changes: 4 additions & 1 deletion src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ const PAN_DURATION = 150;

const ModalizeBase = (
{
// Test
testID,

// Refs
contentRef,

Expand Down Expand Up @@ -671,7 +674,7 @@ const ModalizeBase = (
onHandlerStateChange={handleComponent}
>
<Animated.View style={handleStyles}>
<View style={shapeStyles} />
<View style={shapeStyles} testID={`${testID}_handle_shape`}/>
</Animated.View>
</PanGestureHandler>
);
Expand Down
4 changes: 4 additions & 0 deletions src/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,10 @@ export interface IConfigProps {
}

export interface IProps<ListItem = any> {
/**
* The testID prefix for all child component
*/
testID?: string;
/**
* A reference to the view (ScrollView, FlatList, SectionList) that provides the scroll behavior, where you will be able to access their owns methods.
*/
Expand Down