From 17adde6295244be3149307a17e46c93e88bfca70 Mon Sep 17 00:00:00 2001 From: Irwin Date: Sun, 6 Oct 2019 13:22:47 -0400 Subject: [PATCH] Update app.js Include an example that changes the default down arrow. --- example/app.js | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/example/app.js b/example/app.js index 6a4a0b05..51496d3e 100644 --- a/example/app.js +++ b/example/app.js @@ -35,6 +35,10 @@ export default function init() { updateRef(name, ref) { this[name] = ref; } + + getDownArrow(){ + return 👇🏾; + } render() { let { typography, name, code, sample } = this.state; @@ -62,7 +66,8 @@ export default function init() { onChangeText={this.onChangeText} label='Typography' data={typographyData} - /> + /> + @@ -72,6 +77,7 @@ export default function init() { onChangeText={this.onChangeText} label='Color name' data={colorNameData} + renderAccessory={this.getDownArrow} />