react-native-security-suite 0.7.1 → 0.7.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -11
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -86,18 +86,22 @@ console.log('Decrypted result: ', hardDecrypted);
|
|
|
86
86
|
```js
|
|
87
87
|
import { fetch } from 'react-native-security-suite';
|
|
88
88
|
|
|
89
|
-
const response = await fetch(
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
89
|
+
const response = await fetch(
|
|
90
|
+
'https://example.com/api',
|
|
91
|
+
{
|
|
92
|
+
method: 'POST', // or any http methods
|
|
93
|
+
headers: {
|
|
94
|
+
'Content-Type': 'application/json',
|
|
95
|
+
},
|
|
96
|
+
body: {
|
|
97
|
+
key: value,
|
|
98
|
+
},
|
|
99
|
+
certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
|
|
100
|
+
validDomains: ['example.com'],
|
|
101
|
+
timeout: 6000,
|
|
93
102
|
},
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
},
|
|
97
|
-
certificates: ['sha256/XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX='],
|
|
98
|
-
validDomains: ['example.com'],
|
|
99
|
-
timeout: 6000,
|
|
100
|
-
});
|
|
103
|
+
__DEV__
|
|
104
|
+
);
|
|
101
105
|
console.log('server response: ', response.json());
|
|
102
106
|
```
|
|
103
107
|
|