Typescript "focusable" prop required issue in v4
See original GitHub issueCurrent behaviour
All components that contain the property “focusable” are causing typescript to complain that focusable property has not been supplied.
Expected behaviour
This property should not be required everywhere
Code sample
Any component for example
<Surface></Surface>
Screenshots (if applicable)
What have you tried
N/A
Your Environment
software | version |
---|---|
ios or android | All |
react-native | 0.62.2 |
react-native-paper | 4.0.1 |
node | 14.4.0 |
npm or yarn | 1.22.4 |
expo sdk | 0.0.0 (None) |
react-native-vector-icons | 6.6.0 |
Issue Analytics
- State:
- Created 3 years ago
- Reactions:1
- Comments:9
Top Results From Across the Web
React Native Text Input focus with useRef using Typescript
You wrap GeneralTextInput with forwardRef: import { TextInput, TextInputProps } from "react-native"; export const GeneralTextInput: React.
Read more >Call a function when focused screen changes | React Navigation
In this guide we will call a function or render something on screen focusing. This is useful for making additional API calls when...
Read more >Creating An Outside Focus And Click Handler React Component
In this article, we'll look at how to create an outside focus and click handler with React. We will recreate an open source...
Read more >Using React Refs in Typescript - Pluralsight
This code creates an instance of a RefObject that can take a ref of type HTMLDivElement ; the RefObject has a single property,...
Read more >react-select - npm
TypeScript icon, indicating that this package has built-in type ... Controllable state props and modular architecture; Long-requested ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
you got right, I missed to update @types/react-native to version 0.63.2. Fixed.
thanks! @raajnadar
The docs is not yet updated for v4 I guess it is still for v3.