File tree Expand file tree Collapse file tree 3 files changed +31
-2
lines changed
docs/docs/docs/getting-started Expand file tree Collapse file tree 3 files changed +31
-2
lines changed Original file line number Diff line number Diff line change @@ -41,7 +41,8 @@ import { PackageManagerTabs } from '@theme';
4141
4242### Expo
4343
44- Add the library plugin in your ` app.json ` config file and [ create a new build] ( https://docs.expo.dev/develop/development-builds/create-a-build/ ) :
44+ Add the library plugin in your ` app.json ` config file and [ create a new build] ( https://docs.expo.dev/develop/development-builds/create-a-build/ ) .
45+
4546
4647``` diff
4748 "expo": {
@@ -50,6 +51,27 @@ Add the library plugin in your `app.json` config file and [create a new build](h
5051}
5152```
5253
54+ You also need to enable static linking for iOS by adding ` "useFrameworks": "static" ` in the ` expo-build-properties ` plugin.
55+
56+ ``` diff
57+ {
58+ "expo": {
59+ "plugins": [
60+ "react-native-bottom-tabs",
61+ + [
62+ + "expo-build-properties",
63+ + {
64+ + "ios": {
65+ + "useFrameworks": "static"
66+ + }
67+ + }
68+ + ]
69+ + ]
70+ }
71+ }
72+ ```
73+
74+
5375:::warning
5476
5577This library is not supported in [ Expo Go] ( https://expo.dev/go ) .
@@ -72,6 +94,12 @@ Edit `android/app/src/main/res/values/styles.xml` to inherit from provided theme
7294
7395Here you can read more about [ Android Native Styling] ( /docs/guides/android-native-styling ) .
7496
97+ To enable static linking for iOS, Open the ` ./ios/Podfile ` file and add the following:
98+
99+ ``` ruby
100+ use_frameworks!, :linkage => :static
101+ ```
102+
75103
76104## Example usage
77105
Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ require "#{ws_dir}/node_modules/react-native-test-app/test_app.rb"
77workspace 'ReactNativeBottomTabsExample.xcworkspace'
88
99use_test_app! do |test_app |
10+ # Workaround for not using use_frameworks! in the Podfile
1011 pod 'SDWebImage' , :modular_headers => true
1112 pod 'SDWebImageSVGCoder' , :modular_headers => true
1213end
Original file line number Diff line number Diff line change @@ -1945,7 +1945,7 @@ SPEC CHECKSUMS:
19451945 React-logger: 4072f39df335ca443932e0ccece41fbeb5ca8404
19461946 React-Mapbuffer: 714f2fae68edcabfc332b754e9fbaa8cfc68fdd4
19471947 React-microtasksnativemodule: 2eb1a69d35e700f752944644c0295cf7161d06c5
1948- react-native-bottom-tabs: 7c186a561ad1a19c66ebcbbbdc914a7955f3b706
1948+ react-native-bottom-tabs: 930f7bdb6e9122a519f7a50a83908e6fe04090e6
19491949 react-native-safe-area-context: c6e59b0ac0acb3ddc3247235215775441ca1b2ff
19501950 React-nativeconfig: 4a9543185905fe41014c06776bf126083795aed9
19511951 React-NativeModulesApple: 651670a799672bd54469f2981d91493dda361ddf
You can’t perform that action at this time.
0 commit comments