Skip to content

Commit 2b4053b

Browse files
committed
fix: undated snapshot with minor fixes
1 parent 52327ea commit 2b4053b

File tree

6 files changed

+72682
-66777
lines changed

6 files changed

+72682
-66777
lines changed

example/storybook/stories/components/basic/ScrollView/index.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ import { withKnobs } from '@storybook/addon-knobs';
44
import Wrapper from './../../Wrapper';
55
import { Example as Basic } from './Basic';
66

7-
console.log(React);
87
storiesOf('ScrollView', module)
98
.addDecorator(withKnobs)
109
.addDecorator((getStory: any) => <Wrapper>{getStory()}</Wrapper>)

example/storybook/stories/components/primitives/Image/WithRef.tsx

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,16 @@ export function Example() {
66
const myRef = React.useRef(null);
77

88
React.useEffect(() => {
9-
const styleObj = {
10-
borderWidth: 4,
11-
borderRadius: 4,
12-
borderColor: '#22D3EE',
13-
};
14-
myRef?.current?.setNativeProps({
15-
style: styleObj,
16-
});
9+
if (myRef.current && myRef.current.setNativeProps) {
10+
const styleObj = {
11+
borderWidth: 4,
12+
borderRadius: 4,
13+
borderColor: '#22D3EE',
14+
};
15+
myRef?.current?.setNativeProps({
16+
style: styleObj,
17+
});
18+
}
1719
}, [myRef]);
1820

1921
return (

0 commit comments

Comments
 (0)