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
Copy file name to clipboardExpand all lines: docs/docs/basics/installation.mdx
+40-4Lines changed: 40 additions & 4 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -48,7 +48,11 @@ iOS requires a few extra steps that are _not_ required for Android/Web.
48
48
49
49
### Enable Swift Modules
50
50
51
-
Because the iOS module uses Swift, if the user is using a standard react-native application they'll need to add support for Swift in the project. This can be easily by adding a swift file to the Xcode project -- could be called `dummy.swift` and saying yes when prompted if you'd like to generate a bridging header.
51
+
Because the iOS module uses Swift, if the user is using a standard react-native
52
+
application they'll need to add support for Swift in the project. This can be
53
+
easily by adding a swift file to the Xcode project -- could be called
54
+
`dummy.swift` and saying yes when prompted if you'd like to generate a bridging
@@ -95,13 +99,45 @@ if you're using HLS streams with MPEG2-TS content.
95
99
</TabItem>
96
100
</Tabs>
97
101
102
+
## Expo Web
103
+
104
+
Expo web [does not currently support dynamic imports](https://github.com/doublesymmetry/react-native-track-player/pull/2299#issuecomment-2462566794)
105
+
which are leveraged in the web package to support SSR. If you'd like to use the
106
+
web version via Expo the recommendation is to:
107
+
108
+
### 1. Install `@expo/metro-runtime`
109
+
110
+
<TabsgroupId="pkg">
111
+
<TabItemvalue="npm"label="NPM"default>
112
+
113
+
npm install --save @expo/metro-runtime
114
+
115
+
</TabItem>
116
+
<TabItemvalue="yarn"label="Yarn">
117
+
118
+
yarn add @expo/metro-runtime
119
+
120
+
</TabItem>
121
+
</Tabs>
122
+
123
+
### 2. Import `@expo/metro-runtime` in your App root
124
+
125
+
```tsx
126
+
// App.tsx
127
+
import'@expo/metro-runtime';
128
+
...
129
+
```
130
+
98
131
## Expo
99
132
100
-
You can now use React Native Track Player with Expo.
133
+
You can now use React Native Track Player with Expo.
101
134
102
-
Please be aware that while many people are using React Native Track Player with Expo successfully, the current maintainers of this project do not use Expo and their ability to resolve issues involving Expo is limited.
135
+
Please be aware that while many people are using React Native Track Player with
136
+
Expo successfully, the current maintainers of this project do not use Expo and
137
+
their ability to resolve issues involving Expo is limited.
103
138
104
-
To get started, create a [custom development client](https://docs.expo.dev/clients/getting-started/) for your Expo app and then install React Native Track Player.
139
+
To get started, create a [custom development client](https://docs.expo.dev/clients/getting-started/)
140
+
for your Expo app and then install React Native Track Player.
105
141
106
142
Here is the configuration required for audio playback in background:
0 commit comments