View difference between Paste ID: eYNKpVJv and 07kTrLrC
SHOW: | | - or go back to the newest paste.
1
return (
2
    <Modal animationType="slide" visible={false}>
3
      <View style={stylesDialog.dialogview}>
4
        <TextInput
5
          style={stylesDialog.dialogInput}
6
          placeholder="Name"
7
          value={inputVal}
8
          onChange={(event) => {
9
            state.inputVal = { inputVal: event.target.value.trim() };
10
          }}
11
        ></TextInput>
12
        <View style={{ display: "flex", flexDirection: "row", width: "100%" }}>
13
          <TouchableHighlight style={{ width: "47%" }}>
14
            <View style={stylesDialog.dialogDismiss}>
15
              <Text style={{ textAlign: "center", color: "#4781cc" }}>
16
                Cancel
17
              </Text>
18
            </View>
19
          </TouchableHighlight>
20
          <TouchableHighlight style={{ width: "53%" }}>
21
            <View style={stylesDialog.dialogBtn}>
22
              <Text style={{ textAlign: "center", color: "#fff" }}>
23
                Add Habit
24
              </Text>
25
            </View>
26
          </TouchableHighlight>
27
        </View>
28
      </View>
29
    </Modal>
30
  );
31
};