Skip to content

Instantly share code, notes, and snippets.

@IlyaGulya
Created February 25, 2019 15:44
Show Gist options
  • Save IlyaGulya/539521b25b8e331e7d8ec4d480bbf325 to your computer and use it in GitHub Desktop.
Save IlyaGulya/539521b25b8e331e7d8ec4d480bbf325 to your computer and use it in GitHub Desktop.
import * as React from "react";
import {inject, observer} from "mobx-react/native";
export class $ComponentName$Presenter extends Presenter {
constructor() {
super();
}
}
export type $ComponentName$PresenterProvider = () => $ComponentName$Presenter
export interface $ComponentName$Props {
$ComponentNameLowercase$PresenterProvider?: $ComponentName$PresenterProvider;
}
@inject("$ComponentNameLowercase$PresenterProvider")
@observer
export class $ComponentName$ extends BaseComponent<$ComponentName$Presenter, $ComponentName$Props> {
constructor(props: $ComponentName$Props) {
// @ts-ignore
super(props, props.$ComponentNameLowercase$PresenterProvider());
}
render(): React.ReactNode {
return (
undefined
);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment