Skip to content

nghinv-software/react-native-nconsole

Repository files navigation

react-native-nconsole

logger console for react native

Getting Started

Demo NConsole

Installation

App desktop download NConsole

npm install react-native-nconsole

Usage

import * as React from 'react';

import { StyleSheet, View, Button } from 'react-native';
import { NConsole } from 'react-native-nconsole';

export default function App() {
  React.useEffect(() => {
    NConsole.isEnable = true;
    NConsole.setUri('10.10.51.97');
  }, []);

  const onLog = () => {
    NConsole.log('Hello', 'World', { number: 1 });
    NConsole.group('Group', { number: 1 });
    NConsole.groupEnd();
  };

  return (
    <View style={styles.container}>
      <Button onPress={onLog} title="Log" />
    </View>
  );
}

const styles = StyleSheet.create({
  container: {
    flex: 1,
    alignItems: 'center',
    justifyContent: 'center',
  },
  box: {
    width: 60,
    height: 60,
    marginVertical: 20,
  },
});

License

MIT


About

No description, website, or topics provided.

Resources

License

Code of conduct

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published