mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-12 07:14:23 +00:00
2e592bc101
React Native 0.13.0 fixes the bug we experienced by using const.
23 lines
379 B
JavaScript
23 lines
379 B
JavaScript
'use strict';
|
|
|
|
const constants = require('./constants');
|
|
const util = require('./util');
|
|
|
|
module.exports = {
|
|
create,
|
|
};
|
|
|
|
class List {}
|
|
|
|
util.createMethods(List.prototype, constants.propTypes.LIST, [
|
|
'pop',
|
|
'shift',
|
|
'push',
|
|
'unshift',
|
|
'splice',
|
|
], true);
|
|
|
|
function create(realmId, info) {
|
|
return util.createList(List.prototype, realmId, info, true);
|
|
}
|