File tree Expand file tree Collapse file tree 1 file changed +2
-13
lines changed
example/storybook/stories/components/primitives/Radio Expand file tree Collapse file tree 1 file changed +2
-13
lines changed Original file line number Diff line number Diff line change @@ -3,17 +3,6 @@ import { Radio } from 'native-base';
3
3
4
4
export const Example = ( ) => {
5
5
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
- } , [ ] ) ;
17
6
return (
18
7
< Radio . Group
19
8
name = "myRadioGroup"
@@ -23,10 +12,10 @@ export const Example = () => {
23
12
setValue ( nextValue ) ;
24
13
} }
25
14
>
26
- < Radio value = "one" my = { 1 } bg = "blue.200" >
15
+ < Radio value = "one" my = { 1 } >
27
16
One
28
17
</ Radio >
29
- < Radio value = "two" my = { 1 } bg = "red.200" ref = { ref } >
18
+ < Radio value = "two" my = { 1 } >
30
19
Two
31
20
</ Radio >
32
21
</ Radio . Group >
You can’t perform that action at this time.
0 commit comments