N
N
Nikita Andreevich2020-09-06 12:13:09
React Native
Nikita Andreevich, 2020-09-06 12:13:09

How to call component function from navigationOptions?

How to call a function from navigationOptions ?

I have a navigaiton folder, in it:

  • index.js (app navigation itself)
  • navigationOptions.js (navigationOptions of all components)

How can I call a function on the icon in the header(navigationOptions) on the component that this navigationOptions refers to?

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question