react-native-copilot icon indicating copy to clipboard operation
react-native-copilot copied to clipboard

Pass (at least some) config inside start() function instead of copilot()

Open didac-wh opened this issue 3 years ago • 0 comments

Is your feature request related to a problem? Please describe. Some configurations, like "verticalOffset" or "labels" may depend on the state of a component or context. For example, a language selection that changes without a full-reload happening after.

Describe the solution you'd like It makes sense to me to pass those kind of mutable configs/settings inside the start() function, which is invoked in the component, therefore having the capabilities that React Hooks provides.

Describe alternatives you've considered I propose to keep the current behaviout, but also allow the configs to be passed inside the start() function, and as a consequence, copilot to update the labels/offsets/other as soon as the passed state changes.

didac-wh avatar Nov 08 '22 11:11 didac-wh