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
Make sure to install [`cocoapods-swift-modular-headers`](https://github.com/callstack/cocoapods-swift-modular-headers) gem, otherwise `pod install` will fail.
46
+
47
+
```sh
48
+
gem install cocoapods-swift-modular-headers
49
+
```
50
+
51
+
Next you can install cocoapods.
52
+
45
53
```sh
46
54
cd apps/example/ios
47
55
pod install
@@ -55,20 +63,20 @@ To run the Expo example:
55
63
yarn workspace example-expo start
56
64
```
57
65
58
-
By default, the example is configured to build with the old architecture. To run the example with the new architecture, you can do the following:
66
+
By default, the example is configured to build with the new architecture. To run the example with the old architecture, you can do the following:
To confirm that the app is running with the new architecture, you can check the Metro logs for a message like this:
83
91
84
92
```sh
85
-
Running "SwiftuiTabviewExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
93
+
Running "ReactNativeBottomTabsExample" with {"fabric":true,"initialProps":{"concurrentRoot":true},"rootTag":1}
86
94
```
87
95
88
96
Note the `"fabric":true` and `"concurrentRoot":true` properties.
@@ -129,26 +137,14 @@ Our pre-commit hooks verify that the linter and tests pass when committing.
129
137
130
138
### Publishing to npm
131
139
132
-
We use [release-it](https://github.com/release-it/release-it) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc.
140
+
We use [changesets](https://github.com/changesets/changesets) to make it easier to publish new versions. It handles common tasks like bumping version based on semver, creating tags and releases etc.
133
141
134
142
To publish new versions, run the following:
135
143
136
144
```sh
137
-
yarn release
145
+
yarn publish-packages
138
146
```
139
147
140
-
### Scripts
141
-
142
-
The `package.json` file contains various scripts for common tasks:
143
-
144
-
-`yarn`: setup project by installing dependencies.
145
-
-`yarn typecheck`: type-check files with TypeScript.
146
-
-`yarn lint`: lint files with ESLint.
147
-
-`yarn test`: run unit tests with Jest.
148
-
-`yarn workspace react-native-bottom-tabs-example start`: start the Metro server for the example app.
149
-
-`yarn workspace react-native-bottom-tabs-example android`: run the example app on Android.
150
-
-`yarn workspace react-native-bottom-tabs-example ios`: run the example app on iOS.
151
-
152
148
### Sending a pull request
153
149
154
150
> **Working on your first pull request?** You can learn how from this _free_ series: [How to Contribute to an Open Source Project on GitHub](https://app.egghead.io/playlists/how-to-contribute-to-an-open-source-project-on-github).
If you are going to use [React Navigation / Expo Router Integration](/docs/guides/usage-with-react-navigation) make sure to install `@bottom-tabs/react-navigation`.
Copy file name to clipboardExpand all lines: docs/docs/docs/guides/android-native-styling.mdx
+23Lines changed: 23 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Android Native Styling
2
2
3
+
React Native Bottom Tabs uses native platform primitives to ensure a consistent look and feel across platforms. This means that the appearance of the tabs is controlled by the native platform styling.
Copy file name to clipboardExpand all lines: docs/docs/docs/guides/edge-to-edge-support.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,7 @@ In order to enable edge-to-edge follow installation instructions for [react-nati
6
6
7
7
:::note
8
8
9
-
When using `react-native-edge-to-edge` config plugin, you don't need `react-native-bottom-tabs` config plugin. Make sure to set `parentTheme` to be either `Material2` or `Material3`.
9
+
When using `react-native-edge-to-edge` config plugin, you don't need `react-native-bottom-tabs` config plugin. Make sure to set `parentTheme` to be one of `Material2` or `Material3` themes.
Copy file name to clipboardExpand all lines: docs/docs/docs/guides/usage-with-react-navigation.mdx
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -123,11 +123,11 @@ Available options:
123
123
It's recommended to use `transparent` or `opaque` without lazy loading as the tab bar background flashes when a view is rendered lazily.
124
124
:::
125
125
126
-
### `tabBarActiveTintColor`
126
+
####`tabBarActiveTintColor`
127
127
128
128
Color for the active tab.
129
129
130
-
### `tabBarInactiveTintColor`
130
+
####`tabBarInactiveTintColor`
131
131
132
132
Color for the inactive tabs.
133
133
@@ -280,7 +280,7 @@ React.useEffect(() => {
280
280
281
281
### Hooks
282
282
283
-
`useBottomTabBarHeight`
283
+
#### `useBottomTabBarHeight`
284
284
285
285
This hook returns the height of the bottom tab bar. This is useful when you want to place a component above the tab bar on iOS. It's not needed to offset the content of the screen as the navigator does it automatically.
0 commit comments