Skip to content

Commit 8a7add1

Browse files
authored
docs(changeset): fix: properly set translucent prop on iOS (#188)
1 parent 39da3b6 commit 8a7add1

File tree

5 files changed

+27
-23
lines changed

5 files changed

+27
-23
lines changed

.changeset/new-kiwis-clean.md

+5
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

+5-7
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

+1
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

+1-1
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;

turbo.json

+15-15
Original file line numberDiff line numberDiff line change
@@ -61,11 +61,11 @@
6161
"build:ios": {
6262
"env": ["RCT_NEW_ARCH_ENABLED"],
6363
"inputs": [
64-
"packages/*/package.json",
65-
"packages/*/*.podspec",
66-
"packages/*/ios",
67-
"packages/*/src/*.ts",
68-
"packages/*/src/*.tsx",
64+
"package.json",
65+
"*.podspec",
66+
"ios",
67+
"src/*.ts",
68+
"src/*.tsx",
6969
"apps/example/package.json",
7070
"apps/example/ios",
7171
"!apps/example/ios/build",
@@ -76,11 +76,11 @@
7676
"build:macos": {
7777
"env": ["RCT_NEW_ARCH_ENABLED"],
7878
"inputs": [
79-
"packages/*/package.json",
80-
"packages/*/*.podspec",
81-
"packages/*/ios",
82-
"packages/*/src/*.ts",
83-
"packages/*/src/*.tsx",
79+
"package.json",
80+
"*.podspec",
81+
"ios",
82+
"src/*.ts",
83+
"src/*.tsx",
8484
"apps/example/package.json",
8585
"apps/example/macos",
8686
"!apps/example/macos/build",
@@ -91,11 +91,11 @@
9191
"build:ios-expo": {
9292
"env": ["RCT_NEW_ARCH_ENABLED"],
9393
"inputs": [
94-
"packages/*/package.json",
95-
"packages/*/*.podspec",
96-
"packages/*/ios",
97-
"packages/*/src/*.ts",
98-
"packages/*/src/*.tsx",
94+
"package.json",
95+
"*.podspec",
96+
"ios",
97+
"src/*.ts",
98+
"src/*.tsx",
9999
"apps/example-expo/package.json"
100100
],
101101
"outputs": []

0 commit comments

Comments
 (0)