react-native-music

a music app like netease cloud music

MIT License

Stars
8

Intro

React Native



## Technology

- React Native
- Redux
- Immutable

## Install

- RN watchmanrnpm~
- git clone https://github.com/okoala/RNStarter.git && cd RNStarter
- npm i --verbose

## 

![](http://i12.tietuku.com/557aac0ec5002602.jpg)
![](http://i11.tietuku.com/907f69490fb74055.jpg)

## Run

- IOS: react-native run-ios
- Android: react-native run-android
- Web: npm run web

## 

 fbjs 
```
  1) rm -rf node_modules
  2) npm install
  3) npm install fbjs
  3) find . -name 'fbjs' -print
  4) manually remove all fbjs inside any node_module except one at top level
  5) rm -fr $TMPDIR/react-*
  6) watchman watch-del-all
  7) npm start --reset-cache
```

 Invalid directory
```
  watchman watch-del-all
  npm cache clean && npm install
```

`string.contains is not a function`
 `node_modules/react-native/packager/react-packager/src/Resolver/polyfills/String.prototype.es6.js`

```
if (!String.prototype.contains) {
  String.prototype.contains = function(search) {
    'use strict';
    if (this == null) {
      throw TypeError();
    }
    var string = String(this);
    var pos = arguments.length > 1 ?
      (Number(arguments[1]) || 0) : 0;
    return string.indexOf(String(search), pos) !== -1;
  }
}
```