mirror of
https://github.com/morten-olsen/react-native-debug-console.git
synced 2026-02-08 00:36:26 +01:00
init
This commit is contained in:
32
lib/src/components/DevTool/index.js
Normal file
32
lib/src/components/DevTool/index.js
Normal file
@@ -0,0 +1,32 @@
|
||||
import React from 'react';
|
||||
import {
|
||||
StyleSheet,
|
||||
View,
|
||||
} from 'react-native';
|
||||
import Tab from './Tab';
|
||||
import Console from './Console';
|
||||
import Requests from './Requests';
|
||||
|
||||
const styles = StyleSheet.create({
|
||||
container: {
|
||||
flex: 1,
|
||||
},
|
||||
});
|
||||
|
||||
const DevTool = ({
|
||||
style,
|
||||
}) => (
|
||||
<View style={style || styles.container}>
|
||||
<Tab
|
||||
tabs={[{
|
||||
name: 'console',
|
||||
view: <Console />,
|
||||
}, {
|
||||
name: 'network',
|
||||
view: <Requests />,
|
||||
}]}
|
||||
/>
|
||||
</View>
|
||||
);
|
||||
|
||||
export default DevTool;
|
||||
Reference in New Issue
Block a user