Most of what’s covered in Facebook React Native’s Networking topic is also applicable to You.i React Native, except Known Issues with fetch and cookie based authentication.
But we have added a new API, clearCookies()
that works with You.i React Native, for asynchronously clearing all stored cookies.
Example Usage:
export default class TestNetworkRequestCookiesApp extends Component {
clearCookies() {
NativeModules.Networking.clearCookies();
}
There is no guarantee on when the cookies will actually be cleared because clearCookies()
needs to wait for all currently active requests to finish.
You.i React Native supports one of the following XMLHttpRequest response types: text
and arraybuffer
.
The default response type is text
.
var oReq = new XMLHttpRequest();
oReq.onload = function(e) {
var arraybuffer = oReq.response;
// ...
}
oReq.open("GET", url);
oReq.responseType = "arraybuffer";
oReq.send();
If you don’t set the responseType, it will be set to text
by default.
var oReq = new XMLHttpRequest();
oReq.onload = function(e) {
var response = oReq.response;
// ...
}
oReq.open("GET", url);
oReq.send();
No results yet. Please begin typing a keyword to search the You.i TV Developer Portal...
Try to search with a different keyword or remove search filters.