import React, { Component } from "react" import Modal from "react-native-modal" import PropTypes from "prop-types" import { View, Text, TouchableOpacity } from "react-native" import { Icon, OptionStrip } from "../ui" import { reactAutoBind } from "auto-bind2" import { api } from "../API" export class ApiModal extends Component { static propTypes = { open: PropTypes.bool, onDismiss: PropTypes.func, } constructor(props) { super(props) reactAutoBind(this) this.state = { value: api.backend, } } handleButtonPress() { const { onDismiss } = this.props if (onDismiss) { onDismiss(this.state.value) } } handleValueChanged(newValue) { this.setState({ value: newValue }) } render() { const { open, icon, message, detail } = this.props const { value } = this.state return ( OK ) } }