mirror of
https://github.com/status-im/react-native.git
synced 2025-01-17 13:01:13 +00:00
4f613e20d2
- [ReactServer] Fix newly introduced bug | Amjad Masad - [ReactServer] Last sync from github | Amjad Masad - [RFC-ReactNative] Subscribable overhaul, clean up AppState/Reachability | Eric Vicenti - [ReactKit] Enable tappable <Text /> subnodes | Alex Akers
20 lines
454 B
JavaScript
20 lines
454 B
JavaScript
'use strict';
|
|
|
|
var Activity = require('./src/Activity');
|
|
var Server = require('./src/Server');
|
|
|
|
exports.middleware = function(options) {
|
|
var server = new Server(options);
|
|
return server.processRequest.bind(server);
|
|
};
|
|
|
|
exports.buildPackageFromUrl = function(options, reqUrl) {
|
|
Activity.disable();
|
|
var server = new Server(options);
|
|
return server.buildPackageFromUrl(reqUrl)
|
|
.then(function(p) {
|
|
server.kill();
|
|
return p;
|
|
});
|
|
};
|