https://github.com/burdiuz/react-native-console
https://github.com/burdiuz/react-native-console
Last synced: 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/burdiuz/react-native-console
- Owner: burdiuz
- License: mit
- Created: 2018-10-27T07:24:11.000Z (over 6 years ago)
- Default Branch: master
- Last Pushed: 2023-01-04T16:24:20.000Z (over 2 years ago)
- Last Synced: 2025-02-05T04:11:43.324Z (4 months ago)
- Language: JavaScript
- Size: 810 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 15
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# React Native Console
Developers Console UI and API
```javascript
import React, { Component } from 'react';
import Console, { info, log, error, warn, success } from '@actualwave/react-native-console';const generateRows = () => {
const result = [
info('Something here:', 'anything else'),
log(1, 2, 3, true, Symbol('abc-def')),
warn(new Date()),
success(React),
error(new Error('Something bad happened')),
log([
{ name: 'obj-1' },
{ name: 'obj-2' },
{ name: 'obj-3' },
{ name: 'obj-4' },
]),
log(
new Set([
{ name: 'obj-1' },
{ name: 'obj-2' },
{ name: 'obj-3' },
{ name: 'obj-4' },
]),
),
log(
new Map([
[{ type: 'key' }, { type: 'value' }],
['string-key', { name: 'obj-1' }],
[4, { name: 'obj-2' }],
[true, { name: 'obj-3' }],
[() => null, { name: 'obj-4' }],
[new Date(), { name: 'obj-5' }],
]),
),
];const obj = {
first: '1',
second: '2',
third: '3',
};result.push(log('string one', obj, 'string two', 'string three'));
obj.fourth = Object.assign({}, obj);
obj.fifth = obj;result.push(log(obj));
return result;
};export default () => ;
```