File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/components/tabController Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -138,8 +138,8 @@ export default function TabBarItem({
138
138
const itemWidth = useRef ( props . width ) ;
139
139
const isPressed = useSharedValue ( false ) ;
140
140
// JSON.parse(JSON.stringify is due to an issue with reanimated
141
- const sharedLabelStyle = useSharedValue ( JSON . parse ( JSON . stringify ( labelStyle ) ) ) ;
142
- const sharedSelectedLabelStyle = useSharedValue ( JSON . parse ( JSON . stringify ( selectedLabelStyle ) ) ) ;
141
+ const sharedLabelStyle = useSharedValue ( JSON . parse ( JSON . stringify ( StyleSheet . flatten ( labelStyle ) ) ) ) ;
142
+ const sharedSelectedLabelStyle = useSharedValue ( JSON . parse ( JSON . stringify ( StyleSheet . flatten ( selectedLabelStyle ) ) ) ) ;
143
143
144
144
// NOTE: We clone these color values in refs because they might contain a PlatformColor value
145
145
// which throws an error (see https://github.com/software-mansion/react-native-reanimated/issues/3164)
You can’t perform that action at this time.
0 commit comments