Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/expo/react-native-util
A fork of io.js's util module that works with React Native
https://github.com/expo/react-native-util
Last synced: 6 days ago
JSON representation
A fork of io.js's util module that works with React Native
- Host: GitHub
- URL: https://github.com/expo/react-native-util
- Owner: expo
- License: mit
- Created: 2015-06-27T01:31:27.000Z (over 9 years ago)
- Default Branch: master
- Last Pushed: 2015-08-31T05:39:18.000Z (over 9 years ago)
- Last Synced: 2024-12-08T19:53:50.568Z (13 days ago)
- Language: JavaScript
- Size: 168 KB
- Stars: 12
- Watchers: 18
- Forks: 3
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-react-native - react-native-util ★12 - A fork of io.js's util module that works with React Native (Components / Utils & Infra)
README
# react-native-util [![Build Status](https://travis-ci.org/exponentjs/react-native-util.svg?branch=master)](https://travis-ci.org/exponentjs/react-native-util) [![Slack](http://slack.exponentjs.com/badge.svg)](http://slack.exponentjs.com)
This is a fork of io.js's "util" module that works with React Native. It is currently tracking io.js 2.3.1.## Usage
Install the package in your React Native project:
```sh
npm install react-native-util --save
```Then require it from your JavaScript:
```js
let util = require('react-native-util');
// or if you have enabled ES6 module syntax
import util from 'react-native-util';
```## Differences from io.js's "util"
- Deprecated methods have been removed
- `deprecate` has been removed since it relies on an internal io.js module
- `inherits` has been removed since React Native supports classes
- Promise introspection has been removed. Promises are printed out as regular JS objects.
- `isBuffer` has been removed since there is no `Buffer` class
- Unused private helper methods have been removed