qiuxiang/react-native-recording

initWithOptions is not a function

jiyarong opened this issue · 5 comments

package.json

{
  "name": "WebSokectTest",
  "version": "0.0.1",
  "private": true,
  "scripts": {
    "start": "node node_modules/react-native/local-cli/cli.js start",
    "test": "jest"
  },
  "dependencies": {
    "react": "16.0.0",
    "react-native": "0.50.3",
    "react-native-audio": "^3.5.0",
    "react-native-fetch-blob": "^0.10.8",
    "react-native-recording": "^0.2.0"
  },
  "devDependencies": {
    "babel-jest": "21.2.0",
    "babel-preset-react-native": "4.0.0",
    "jest": "21.2.1",
    "react-test-renderer": "16.0.0"
  },
  "jest": {
    "preset": "react-native" 
  }
}
componentDidMount() {
    //Recording.init()
    Recording.initWithOptions({
      bufferSize: 8192,
      sampleRate: 16000,
      bitsPerChannel: 16,
      channelsPerFrame: 1
    });
  }

现在 npm 还没有更新,用的是旧的方法

大兄弟,你这个东西能救我的命啊,赶紧发布一下吧

。。有些地方我还要改下,但最近实在没空,我看今晚,或明天找个时间吧

@qiuxiang 帅哥你真帅

计划要修改的地方还是没时间改。。我先把现在的发布了