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-52Lines changed: 52 additions & 52 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# QuickBlox React Native SDK
2
2
3
-
## Quic Start
3
+
## Quick Start
4
4
This guide demonstarates how to connect quickblox-react-native-sdk to your project and start development.
5
5
6
6
### Create a new app in the Admin Panel
@@ -14,7 +14,7 @@ Quickblox application includes everything that brings messaging right into your
14
14
### Install React Native SDK into your app
15
15
To connect QuickBlox to your app just add it into your `package.json` in the root directory of the project and enter the following code snippet:
16
16
17
-
`npm install quickblox-react-native-sdk`
17
+
`npm install quickblox-react-native-sdk --save`
18
18
19
19
iOS and Android have different dependencies systems. For that reason, you need to install dependencies in your iOS project. Just locate **ios/** folder in the root directory of the project and enter the following code snippet.
20
20
@@ -27,22 +27,22 @@ Initialize the framework with your application credentials. Pass `appId`, `authK
27
27
28
28
```javascript
29
29
constappSettings= {
30
-
appId:'',
31
-
authKey:'',
32
-
authSecret:'',
33
-
accountKey:'',
34
-
apiEndpoint:'', // optional
35
-
chatEndpoint:''// optional
30
+
appId:'',
31
+
authKey:'',
32
+
authSecret:'',
33
+
accountKey:'',
34
+
apiEndpoint:'', // optional
35
+
chatEndpoint:''// optional
36
36
};
37
37
38
38
QB.settings
39
-
.init(appSettings)
40
-
.then(function () {
41
-
// SDK initialized successfully
42
-
})
43
-
.catch(function (e) {
44
-
// Some error occured, look at the exception message for more details
45
-
});
39
+
.init(appSettings)
40
+
.then(function () {
41
+
// SDK initialized successfully
42
+
})
43
+
.catch(function (e) {
44
+
// Some error occured, look at the exception message for more details
45
+
});
46
46
```
47
47
48
48
#### Authorize user
@@ -51,18 +51,18 @@ In order to use the abilities of QuickBlox SDK, you need to authorize your app o
51
51
52
52
```javascript
53
53
QB.auth
54
-
.login({
55
-
login:'yourlogin',
56
-
password:'yourpassword'
57
-
})
58
-
.then(function (info) {
59
-
// signed in successfully, handle info as necessary
60
-
// info.user - user information
61
-
// info.session - current session
62
-
})
63
-
.catch(function (e) {
64
-
// handle error
65
-
});
54
+
.login({
55
+
login:'yourlogin',
56
+
password:'yourpassword'
57
+
})
58
+
.then(function (info) {
59
+
// signed in successfully, handle info as necessary
0 commit comments