rn-boat-vconsole

0.0.5 • Public • Published

rn-boat-vconsole

Description

show log in your rn app ^_^

Install:

npm install rn-boat-vconsole --save

Example:

import { ConsoleHooker, LogView }from "rn-boat-vconsole";
 
(new ConsoleHooker()).hook();
<LogView style={{width: Dimensions.get('window').width, height: Dimensions.get('window').height}}
         inverted={false}
         multiExpanded={true} timeStampFormat='HH:mm:ss' visible={this.state.logViewVisible}/>
<TouchableOpacity activeOpacity={0.6} onPress={() => {
    this.setState({
        logViewVisible: !this.state.logViewVisible
    });
}} style={{
    position: 'absolute',
    right: 100,
    bottom: 100,
    backgroundColor: 'gray',
    padding: 10,
    borderRadius: 5,
    elevation: 3
}}>
    <Text style={{color: 'white'}}>DebugView</Text>
</TouchableOpacity>

Package Sidebar

Install

npm i rn-boat-vconsole

Weekly Downloads

1

Version

0.0.5

License

ISC

Unpacked Size

48.6 kB

Total Files

12

Last publish

Collaborators

  • qianmi