You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Apr 6, 2023. It is now read-only.
When creating a simple HTML input or any other HTML element used for input source, remember to always extend the element props. In web you can always use the `JSX.IntrinsicElements['element']` to get the props adapted to JSX.
49
49
50
-
<blockquote>
51
-
<p>In React Native you can import default component props directly from `react-native` package, for example:</p>
50
+
In React Native you can import default component props directly from `react-native` package, for example:
52
51
53
52
```jsx
54
-
import { TextInputProps } from'react-native'`
53
+
import { TextInputProps } from'react-native';
55
54
```
56
-
</blockquote>
57
55
58
56
Also, in web (ReactJS) remember to reference the global element inside `useRef` hook and **always** set the default value to `null`.
0 commit comments