Skip to content

Commit 4a4c641

Browse files
committed
chore: update index.d.ts with textProps
1 parent fa6fbbf commit 4a4c641

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

src/index.d.ts

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
declare module "OTPInput" {
2-
import { ColorValue, TextInputProps, TextStyle, ViewStyle } from "react-native";
2+
import { ColorValue, TextInputProps, TextProps, TextStyle, ViewStyle } from "react-native";
33

44
export interface OtpEntryProps {
55
/**
@@ -74,6 +74,12 @@ declare module "OTPInput" {
7474
*/
7575
textInputProps?: TextInputProps;
7676

77+
/**
78+
* Additional props to be passed to the `Text` component that renders each digit.
79+
* Allows customizing text behavior beyond styling (which is handled by pinCodeTextStyle in theme).
80+
*/
81+
textProps?: TextProps;
82+
7783
/**
7884
* The type of characters allowed in the OTP entry.
7985
*/

0 commit comments

Comments
 (0)