File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 11import './App.css' ;
2+ import { EnrichedTextInput } from 'react-native-enriched' ;
23
34function App ( ) {
45 return (
56 < div className = "container" >
6- < div > Text input</ div >
7- < input type = "text" placeholder = "Type something..." />
7+ < EnrichedTextInput defaultValue = "Hello from web!" />
88 </ div >
99 ) ;
1010}
Original file line number Diff line number Diff line change @@ -6,7 +6,10 @@ import type {
66
77export interface EnrichedTextInputProps extends BaseEnrichedTextInputProps { }
88
9- export const EnrichedTextInput = ( { ref } : EnrichedTextInputProps ) => {
9+ export const EnrichedTextInput = ( {
10+ ref,
11+ defaultValue,
12+ } : EnrichedTextInputProps ) => {
1013 useImperativeHandle (
1114 ref ,
1215 ( ) : EnrichedTextInputInstance => ( {
@@ -43,5 +46,5 @@ export const EnrichedTextInput = ({ ref }: EnrichedTextInputProps) => {
4346 } )
4447 ) ;
4548
46- return < div /> ;
49+ return < textarea defaultValue = { defaultValue } /> ;
4750} ;
You can’t perform that action at this time.
0 commit comments