Skip to content

Instantly share code, notes, and snippets.

View mimol91's full-sized avatar

Adam Szaraniec mimol91

View GitHub Profile
package main
import (
"encoding/json"
"testing"
)
type foo struct {
ID string `json:"_id"`
Index int `json:"index"`
<View>
<Text>Hello {title}</Text>
</View>
@mimol91
mimol91 / jsx.js
Created April 28, 2020 14:14
dynamic
<View>
<View>
<Text>Are you tax resident</Text>
<TouchableOpacity onPress={setFieldVal("tax_resident", true)}>
<Text style={{color: values.tax_resident === true ? "green" : "black"}}>YES</Text>
</TouchableOpacity>
<TouchableOpacity onPress={setFieldVal("tax_resident", false)}>
<Text style={{color: values.tax_resident === false ? "green" : "black"}}>No</Text>
</TouchableOpacity>
</View>