diff --git a/.changeset/tidy-eels-wish.md b/.changeset/tidy-eels-wish.md new file mode 100644 index 00000000..b5ae190b --- /dev/null +++ b/.changeset/tidy-eels-wish.md @@ -0,0 +1,5 @@ +--- +'react-native-bottom-tabs': minor +--- + +Add `experimental_bakedTintColors` prop to opt into the iOS 26 Liquid Glass active and inactive tint color workaround. diff --git a/apps/example/src/Examples/TintColors.tsx b/apps/example/src/Examples/TintColors.tsx index c5f44333..61351eaa 100644 --- a/apps/example/src/Examples/TintColors.tsx +++ b/apps/example/src/Examples/TintColors.tsx @@ -4,6 +4,7 @@ import { Article } from '../Screens/Article'; import { Albums } from '../Screens/Albums'; import { Contacts } from '../Screens/Contacts'; import { Chat } from '../Screens/Chat'; +import { Button, Platform, StyleSheet, View } from 'react-native'; const renderScene = SceneMap({ article: Article, @@ -12,8 +13,11 @@ const renderScene = SceneMap({ chat: Chat, }); +const isAndroid = Platform.OS === 'android'; + export default function TintColorsExample() { const [index, setIndex] = useState(0); + const [bakedTintColors, setBakedTintColors] = useState(false); const [routes] = useState([ { key: 'article', @@ -31,9 +35,11 @@ export default function TintColorsExample() { }, { key: 'contacts', - focusedIcon: require('../../assets/icons/person_dark.png'), + focusedIcon: isAndroid + ? require('../../assets/icons/person_dark.png') + : { sfSymbol: 'person.fill' }, title: 'Contacts', - activeTintColor: 'yellow', + activeTintColor: 'blue', }, { key: 'chat', @@ -45,14 +51,32 @@ export default function TintColorsExample() { ]); return ( - + + +