Commit 611d8cce authored by Gijs Hendriksen's avatar Gijs Hendriksen

Merge branch 'bug/checkbox' into 'master'

Bug/checkbox

Closes #111

See merge request !389
parents 9efca603 1828beca
......@@ -151,14 +151,16 @@ class RegistrationScreen extends Component {
}}
/>
</View>
<HTML
html={field.description}
onLinkPress={(event, href) => openUrl(href)}
baseFontStyle={styles.description}
tagsStyles={{
a: linkStyles,
}}
/>
{!field.description || (
<HTML
html={field.description}
onLinkPress={(event, href) => openUrl(href)}
baseFontStyle={styles.description}
tagsStyles={{
a: linkStyles,
}}
/>
)}
{validity.isValid || (
<Text style={styles.invalid}>
{validity.reason}
......@@ -172,14 +174,16 @@ class RegistrationScreen extends Component {
<Text style={styles.field}>
{field.label}
</Text>
<HTML
html={field.description}
onLinkPress={(event, href) => openUrl(href)}
baseFontStyle={styles.description}
tagsStyles={{
a: linkStyles,
}}
/>
{!field.description || (
<HTML
html={field.description}
onLinkPress={(event, href) => openUrl(href)}
baseFontStyle={styles.description}
tagsStyles={{
a: linkStyles,
}}
/>
)}
<TextInput
value={this.state[key]}
onChangeText={value => this.updateField(key, value)}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment