Catch no implicit return for headerLeft/headerRight in <Stack.Screen/> in IDE #928
Unanswered
isMattCoding
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I was wondering why my header wasn't displaying the headerLeft and headerRight, despite the fact that I had no errors in the IDE or the console.
My code looked like this:
In hindsight, I realise that I forgot to add a
return
, or I could have used theheaderLeft: () => ( ... )
syntax, but I would have preferred it if an error popped up to alert me about the error.I currently use eslint, and it didn't pick up on this. Can I change my settings to pick up on this kind of syntax error?
Beta Was this translation helpful? Give feedback.
All reactions