You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Streamline the guide to focus only on platform-specific files (.web.ts/.native.ts) approach. Removed alternative approaches to keep the documentation concise and easier to follow.
Changes:
- Removed "Custom Tab Bar" approach
- Removed "Conditional Platform Rendering" approach
- Simplified icon support section
- Removed comparison table
- Reduced from 265 to 138 lines
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Co-Authored-By: Claude <noreply@anthropic.com>
Copy file name to clipboardExpand all lines: docs/docs/docs/guides/web-platform-support.md
+5-132Lines changed: 5 additions & 132 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,17 +2,7 @@
2
2
3
3
React Native Bottom Tabs uses native platform primitives (SwiftUI on iOS and Material Design on Android) which are not available on web. For web applications, you'll need to use JavaScript-based tab implementations as a fallback.
4
4
5
-
## Why Web Requires a Different Approach
6
-
7
-
Native bottom tabs rely on platform-specific UI components that don't exist in web browsers. React Native Web translates React Native components to web equivalents, but native modules require explicit web implementations.
8
-
9
-
:::note
10
-
11
-
Web support requires using platform-specific files or a custom tab bar implementation. This guide shows you both approaches.
This approach requires installing both `@bottom-tabs/react-navigation` and `@react-navigation/bottom-tabs`, which increases bundle size for all platforms.
207
-
208
-
:::
209
-
210
-
## Styling Considerations
211
-
212
-
When implementing web tabs, consider these styling differences:
107
+
## Icon Support
213
108
214
-
### Native Platforms
215
-
- Use `sfSymbol` for iOS icons
216
-
- Platform-specific appearance attributes
217
-
- Native gestures and animations
109
+
On web, you cannot use SF Symbols. Instead, use cross-platform icon libraries:
218
110
219
-
### Web Platform
220
-
- Use web-compatible icon libraries (e.g., `react-icons`, `@expo/vector-icons`)
221
-
- CSS-based styling and animations
222
-
- Standard web accessibility practices
223
-
224
-
## Icon Libraries for Web
225
-
226
-
For web compatibility, use icon libraries that work across all platforms:
0 commit comments