Skip to content

Commit 325cf0c

Browse files
committed
Merge branch 'patch' of github.com:GeekyAnts/NativeBase into patch
2 parents 3bf4bbf + 7399ee0 commit 325cf0c

File tree

1 file changed

+2
-13
lines changed

1 file changed

+2
-13
lines changed

example/storybook/stories/components/primitives/Radio/controlledRadio.tsx

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -3,17 +3,6 @@ import { Radio } from 'native-base';
33

44
export const Example = () => {
55
const [value, setValue] = React.useState('one');
6-
const ref = React.useRef(null);
7-
React.useEffect(() => {
8-
console.log('ref here', ref.current);
9-
// ref.current.setNativeProps({
10-
// backgroundColor: 'red',
11-
// });
12-
// ref.current.setNativeProps({
13-
// backgroundColor: 'red',
14-
// });
15-
ref.current.focus();
16-
}, []);
176
return (
187
<Radio.Group
198
name="myRadioGroup"
@@ -23,10 +12,10 @@ export const Example = () => {
2312
setValue(nextValue);
2413
}}
2514
>
26-
<Radio value="one" my={1} bg="blue.200">
15+
<Radio value="one" my={1}>
2716
One
2817
</Radio>
29-
<Radio value="two" my={1} bg="red.200" ref={ref}>
18+
<Radio value="two" my={1}>
3019
Two
3120
</Radio>
3221
</Radio.Group>

0 commit comments

Comments
 (0)