Skip to content

Instantly share code, notes, and snippets.

Last active May 9, 2019
What would you like to do?
import * as React from "react";
import * as AppFormer from "appformer-js";
export class MyScreen extends AppFormer.Screen {
private screen: MyReactComponent;
constructor() {
this.af_isReact = true;
this.af_componentTitle = "MyScreen title";
public af_onOpen(): void {
public af_componentRoot(): AppFormer.Element {
return <MyReactComponent exposing={self => (this.screen = self)} />;
AppFormer.registerScreen(new MyScreen());
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment