Skip to content
Open
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
30 changes: 30 additions & 0 deletions index.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
declare module 'react-native-dialog-input' {
import { Component } from 'react'
import { StyleProp, ViewStyle } from 'react-native'

interface Props {
isDialogVisible: boolean
title?: string
message?: string
hintInput?: string
initValueTextInput?: string
textInputProps?: AutoCorrectProps
Copy link

@TheSolly TheSolly Dec 16, 2020

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This can be improved by using TextInputProps, imported from react-native

modalStyle?: StyleProp<ViewStyle>
dialogStyle?: StyleProp<ViewStyle>
cancelText?: string
submitText?: string
submitInput: (inputText: string) => void
closeDialog: () => void
}

interface AutoCorrectProps {
autoCorrect?: boolean
autoCapitalize?: boolean
clearButtonMode?: boolean
clearTextOnFocus?: boolean
keyboardType?: boolean
}

export default class DialogInput extends Component<Props, {}> { }
}