render()

in TestAppTypescript/src/CrashesScreen.tsx [85:130]


  render() {
    return (
      <View style={SharedStyles.container}>
        <ScrollView>
          <Text style={SharedStyles.heading}>Test Crashes</Text>
          <Text style={SharedStyles.enabledText}>
            Crashes enabled: {this.state.crashesEnabled ? "yes" : "no"}
          </Text>
          <TouchableOpacity onPress={this.toggleEnabled}>
            <Text style={SharedStyles.toggleEnabled}>toggle</Text>
          </TouchableOpacity>
          <TouchableOpacity onPress={this.jsCrash}>
            <Text style={styles.button}>Crash JavaScript</Text>
          </TouchableOpacity>
          <TouchableOpacity onPress={this.nativeCrash}>
            <Text style={styles.button}>Crash native code</Text>
          </TouchableOpacity>
          <TouchableOpacity
            onPress={() => {
              this.dialogComponent.show();
            }}
          >
            <Text style={styles.button}>Set text error attachment</Text>
          </TouchableOpacity>
          <Text style={SharedStyles.enabledText}>
            {"Current value:"}
            {this.state.textAttachment}
          </Text>
          <TouchableOpacity onPress={this.showFilePicker}>
            <Text style={styles.button}>
              Select image as binary error attachment
            </Text>
          </TouchableOpacity>
          <Text style={SharedStyles.enabledText}>
            {"Current value:"}
            {this.state.binaryAttachment}
          </Text>
          <Text style={styles.lastSessionHeader}>Last session:</Text>
          <Text style={styles.lastSessionInfo}>
            {this.state.lastSessionStatus}
          </Text>
        </ScrollView>
        {this.getTextAttachmentDialog()}
      </View>
    );
  }