Skip to content

Commit 3b9cc7f

Browse files
authored
ExampleScreenPresenter - add afterValueChanged to renderRadioGroup (#757)
1 parent 643724f commit 3b9cc7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/src/screens/ExampleScreenPresenter.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ export function renderBooleanGroup(title, options) {
5959
);
6060
}
6161

62-
export function renderRadioGroup(title, key, options, {isRow} = {}) {
62+
export function renderRadioGroup(title, key, options, {isRow, afterValueChanged} = {}) {
6363
const value = this.state[key];
6464
return (
6565
<View marginB-s2>
@@ -70,7 +70,7 @@ export function renderRadioGroup(title, key, options, {isRow} = {}) {
7070
row={isRow}
7171
style={isRow && styles.rowWrap}
7272
initialValue={value}
73-
onValueChange={value => this.setState({[key]: value})}
73+
onValueChange={value => this.setState({[key]: value}, afterValueChanged)}
7474
>
7575
{_.map(options, (value, key) => {
7676
return (

0 commit comments

Comments
 (0)