react-native-device-log icon indicating copy to clipboard operation
react-native-device-log copied to clipboard

Super express must either be null or a function, not undefined

Open ws2356 opened this issue 10 years ago • 1 comments

relevant code:

import React, { Component } from 'react';
import deviceLog, {LogView} from 'react-native-device-log';
import {
  AppRegistry,
  StyleSheet,
  Text,
  View,
  AsyncStorage,
} from 'react-native';

deviceLog.init(AsyncStorage, { logToConsole : true }).then(() => {
  //When the deviceLog has been initialized we can clear it if we want to:
  //deviceLog.clear();
});

and i debug and found the single line

import deviceLog, {LogView} from 'react-native-device-log';

caused the exception

Maybe it's the version issue:?

node -v

v6.2.0

react-native --version

react-native-cli: 0.2.0 react-native: 0.26.0

version of this repo: "react-native-device-log": "0.0.7"

Nice log utility if it could work, please fix it!

ws2356 avatar Jun 15 '16 04:06 ws2356

Sry for extremely slow fix. But test it now 0.0.9. I think it will work. Otherwise. post here and I'll reopen.

olofd avatar Nov 16 '16 08:11 olofd