Created
February 25, 2019 15:44
-
-
Save IlyaGulya/539521b25b8e331e7d8ec4d480bbf325 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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