- 
 
- 
  Notifications
 You must be signed in to change notification settings 
- Fork 31
Add the addListener binding. #9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add the addListener binding. #9
Conversation
The TypeScript definitions have
export interface NavigationEventPayload { type: EventType; action: NavigationAction; state: NavigationState; lastState: NavigationState | null | undefined; }
So I think it should be NavigationState.t / option(NavigationState.t).
Actually, if it can really be null and not just undefined, we need Js.Nullable.t(NavigationState.t).
Thank you for bearing with me while I am starting with ReasonML.
I have the following error:
src/Navigation.re 33:3-21
 
 31 ┆ navigationEventPayload => unit
 32 ┆ ) =>
 33 ┆ EventSubscription.t =
 34 ┆ "addListener";
 35 ┆ 
 
 The module or file EventSubscription can't be found.
but reason-react-native seems to be in bsconfig.json nonetheless any idea how to make it visible?
open ReactNative; fixed it!
 
 @gregtap
 
 gregtap
 
 
 
 left a comment
 
 •
 
 
 
 
 edited
 
 
 
 
 
 
 
 
 
  Loading
 
 
 
  
 
   
 
 
 
 
 
 edited
 
 
 
 
 
 There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-- deleted --
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for the contribution and for your patience!
r? @MoOx