We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad1baba commit fac005aCopy full SHA for fac005a
1 file changed
packages/pluggableWidgets/intro-screen-native/src/SwipeableContainer.tsx
@@ -111,9 +111,12 @@ export const SwipeableContainer = (props: SwipeableContainerProps): ReactElement
111
onSlideChange(index, activeIndexBeforeChange);
112
};
113
114
- const renderItem = ({ item }: any): ReactElement => {
115
- return <View style={[{ width, flex: 1 }]}>{item.content}</View>;
116
- };
+ const renderItem = useCallback(
+ ({ item }: any): ReactElement => {
+ return <View style={[{ width }]}>{item.content}</View>;
117
+ },
118
+ [width]
119
+ );
120
121
const renderButton = (
122
caption: Option<string>,
0 commit comments