Skip to content

Commit f80b4f1

Browse files
committed
docs(changeset): fix: properly set translucent prop on iOS
1 parent 39da3b6 commit f80b4f1

File tree

4 files changed

+12
-8
lines changed

4 files changed

+12
-8
lines changed

.changeset/new-kiwis-clean.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
'react-native-bottom-tabs': patch
3+
---
4+
5+
fix: properly set translucent prop on iOS

apps/example/ios/Podfile.lock

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1209,7 +1209,7 @@ PODS:
12091209
- ReactCommon/turbomodule/bridging
12101210
- ReactCommon/turbomodule/core
12111211
- Yoga
1212-
- react-native-bottom-tabs (0.7.1):
1212+
- react-native-bottom-tabs (0.7.3):
12131213
- DoubleConversion
12141214
- glog
12151215
- RCT-Folly (= 2024.01.01.00)
@@ -1222,7 +1222,7 @@ PODS:
12221222
- React-graphics
12231223
- React-ImageManager
12241224
- React-jsi
1225-
- react-native-bottom-tabs/common (= 0.7.1)
1225+
- react-native-bottom-tabs/common (= 0.7.3)
12261226
- React-NativeModulesApple
12271227
- React-RCTFabric
12281228
- React-rendererdebug
@@ -1234,7 +1234,7 @@ PODS:
12341234
- SDWebImageSVGCoder (>= 1.7.0)
12351235
- SwiftUIIntrospect (~> 1.0)
12361236
- Yoga
1237-
- react-native-bottom-tabs/common (0.7.1):
1237+
- react-native-bottom-tabs/common (0.7.3):
12381238
- DoubleConversion
12391239
- glog
12401240
- RCT-Folly (= 2024.01.01.00)
@@ -1761,8 +1761,6 @@ DEPENDENCIES:
17611761
- RNGestureHandler (from `../../../node_modules/react-native-gesture-handler`)
17621762
- RNScreens (from `../../../node_modules/react-native-screens`)
17631763
- RNVectorIcons (from `../../../node_modules/react-native-vector-icons`)
1764-
- SDWebImage
1765-
- SDWebImageSVGCoder
17661764
- Yoga (from `../../../node_modules/react-native/ReactCommon/yoga`)
17671765

17681766
SPEC REPOS:
@@ -1945,7 +1943,7 @@ SPEC CHECKSUMS:
19451943
React-logger: d79b704bf215af194f5213a6b7deec50ba8e6a9b
19461944
React-Mapbuffer: b982d5bba94a8bc073bda48f0d27c9b28417fae3
19471945
React-microtasksnativemodule: 8fa285fed833a04a754bf575f8ded65fc240b88d
1948-
react-native-bottom-tabs: a08eaf6baf1b78375e17019536783dbbca3190ba
1946+
react-native-bottom-tabs: b6b3dc2e971c860a0a6d763701929d1899f666a0
19491947
react-native-safe-area-context: 73505107f7c673cd550a561aeb6271f152c483b6
19501948
React-nativeconfig: 8c83d992b9cc7d75b5abe262069eaeea4349f794
19511949
React-NativeModulesApple: b8465afc883f5bf3fe8bac3767e394d581a5f123
@@ -1984,6 +1982,6 @@ SPEC CHECKSUMS:
19841982
SwiftUIIntrospect: fee9aa07293ee280373a591e1824e8ddc869ba5d
19851983
Yoga: 055f92ad73f8c8600a93f0e25ac0b2344c3b07e6
19861984

1987-
PODFILE CHECKSUM: 1c1dbca3e400ef935aa9a150cb2dcb58fb8c4536
1985+
PODFILE CHECKSUM: a8893a4bb2afbd979cd364e553bb6f2186c2ce27
19881986

19891987
COCOAPODS: 1.15.2

packages/react-native-bottom-tabs/ios/TabViewImpl.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,7 @@ private func configureTransparentAppearance(tabBar: UITabBar, props: TabViewProp
199199

200200
private func configureStandardAppearance(tabBar: UITabBar, props: TabViewProps) {
201201
let appearance = UITabBarAppearance()
202+
tabBar.isTranslucent = props.translucent
202203

203204
// Configure background
204205
switch props.scrollEdgeAppearance {

packages/react-native-bottom-tabs/src/TabViewNativeComponent.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ export interface TabViewProps extends ViewProps {
4444
sidebarAdaptable?: boolean;
4545
scrollEdgeAppearance?: string;
4646
barTintColor?: ColorValue;
47-
translucent?: boolean;
47+
translucent?: WithDefault<boolean, true>;
4848
rippleColor?: ColorValue;
4949
activeTintColor?: ColorValue;
5050
inactiveTintColor?: ColorValue;

0 commit comments

Comments
 (0)