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: README.md
+52-6Lines changed: 52 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,7 +6,10 @@ React Native Module for integrating Queue-it's virtual waiting room into React N
6
6
7
7
## Sample app
8
8
9
-
A sample app project to try out functionality in the library can be found in the [exampleApp](https://github.com/queueit/react-native-queue-it/tree/master/exampleApp) directory.
9
+
Two sample apps are available to try out the library:
10
+
11
+
-[`exampleApp`](https://github.com/queueit/react-native-queue-it/tree/master/exampleApp) — bare React Native
When Android is used, the following activity also needs to be included in the application's manifest file.
26
+
On Android, the library automatically registers the required `QueueActivity` — no manual `AndroidManifest.xml` changes are needed.
27
+
28
+
### Expo
29
+
30
+
The library works in a managed Expo project with no extra setup. The only exception is `android:allowBackup`: the Queue-it android SDK uses `allowBackup="true"`, so if your app sets `android.allowBackup` to `false` in `app.json` the Android manifest merge fails. To keep `false`, add a config plugin so your app's value wins the merge.
> Bare React Native apps can instead add `tools:replace="android:allowBackup"` to the `<application>` element in `android/app/src/main/AndroidManifest.xml`.
73
+
29
74
## Usage
30
75
31
76
To protect parts of your application you'll need to make a `QueueIt.run` call and await it's result.
@@ -73,7 +118,6 @@ enqueue = async () => {
73
118
this.state.clientId,
74
119
this.state.eventOrAlias,
75
120
this.getEnqueueKey()
76
-
77
121
);
78
122
} elseif (this.state.enqueueToken) {
79
123
enqueueResult =awaitQueueIt.runWithEnqueueToken(
@@ -89,7 +133,9 @@ enqueue = async () => {
89
133
}
90
134
switch (enqueueResult.State) {
91
135
caseEnqueueResultState.Disabled:
92
-
console.log(`queue is disabled and QueueITToken is: ${enqueueResult.QueueITToken}`);
136
+
console.log(
137
+
`queue is disabled and QueueITToken is: ${enqueueResult.QueueITToken}`
This document describes the required changes in the react-native application to accommodate the new update of react-native-queue-it connector.
3
3
4
+
> **Note:** react-native-queue-it now resolves React Native itself through the `com.facebook.react` Gradle plugin, so the app **no longer needs to create a `gradle/libs.versions.toml` version catalog** or register it in `settings.gradle`. It automatically uses the React Native version already installed in your app, so these steps work across React Native versions (verified on 0.83 and 0.86). The instructions below have been simplified accordingly.
5
+
4
6
## iOS
5
7
iOS applications should not be impacted by this update.
6
8
7
9
## Android
8
10
Android apps will need to include the following changes to support the new update.
9
11
10
-
### gradle/libs.versions.toml
11
-
This file contains all the necessary information for the needed dependencies and versions. If this file does not exist, it needs to be created.
0 commit comments