question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Typescript "focusable" prop required issue in v4

See original GitHub issue

Current 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)

Screenshot 2020-07-28 at 00 03 33

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:closed
  • Created 3 years ago
  • Reactions:1
  • Comments:9

github_iconTop GitHub Comments

1reaction
azuxxcommented, Jul 29, 2020

what is the version of @types/react-native?

you got right, I missed to update @types/react-native to version 0.63.2. Fixed.

thanks! @raajnadar

0reactions
raajnadarcommented, Jul 30, 2020

The docs is not yet updated for v4 I guess it is still for v3.

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found