From 5d01cb3da4c05b5cf1297fa18f3c0182d6f3e320 Mon Sep 17 00:00:00 2001 From: Divyanshu Patil Date: Fri, 23 Jan 2026 00:25:20 +0530 Subject: [PATCH] fix: add editable as default prop --- example/ios/Podfile.lock | 2 +- example/src/App.tsx | 2 +- src/TypeRichTextInput.tsx | 3 ++- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/example/ios/Podfile.lock b/example/ios/Podfile.lock index 4003b47..04ef402 100644 --- a/example/ios/Podfile.lock +++ b/example/ios/Podfile.lock @@ -2806,6 +2806,6 @@ SPEC CHECKSUMS: SocketRocket: d4aabe649be1e368d1318fdf28a022d714d65748 Yoga: 6ca93c8c13f56baeec55eb608577619b17a4d64e -PODFILE CHECKSUM: ec2a6d3aa5fc6aa4cd75a1a1f1d3fb28c1f8abee +PODFILE CHECKSUM: 32064aec2e4fd956051ae18c71720479742bc76a COCOAPODS: 1.15.2 diff --git a/example/src/App.tsx b/example/src/App.tsx index b2d5659..d9ec573 100644 --- a/example/src/App.tsx +++ b/example/src/App.tsx @@ -171,7 +171,7 @@ export default function App() { console.log(e); }} keyboardAppearance="dark" - editable={true} + // editable={true} lineHeight={22} fontFamily={Platform.select({ ios: 'georgia', android: 'serif' })} // fontweight won't work unless this is used fontStyle="italic" diff --git a/src/TypeRichTextInput.tsx b/src/TypeRichTextInput.tsx index 21b7c16..7fbdced 100644 --- a/src/TypeRichTextInput.tsx +++ b/src/TypeRichTextInput.tsx @@ -39,7 +39,7 @@ const TypeRichTextInput = forwardRef( (props: TypeRichTextInputProps, ref: Ref) => { const nativeRef = useRef(null); - const { scrollEnabled = true, ...restProps } = props; + const { scrollEnabled = true, editable = true, ...restProps } = props; useImperativeHandle(ref, () => ({ focus: () => { @@ -114,6 +114,7 @@ const TypeRichTextInput = forwardRef( ref={nativeRef} {...restProps} scrollEnabled={scrollEnabled} + editable={editable} onInputFocus={() => props.onFocus?.()} onInputBlur={() => props.onBlur?.()} onChangeText={handleOnChangeTextEvent}