React Native 页面调试工具 react-native-vdebug

yarn add react-native-vdebug

import React from 'react'
import { createNativeStackNavigator } from '@react-navigation/native-stack'
import { getRouter } from './config'
import { ErrorBoundary } from '../component/light'
import VDebug, { initTrace, setExternalContext } from 'react-native-vdebug'
import { View } from 'react-native'

const Stack = createNativeStackNavigator()

export default function Router() {
  // Before component Render, perform Proxy Console/Network (Optional)
  initTrace()

  // Context object when the command is executed (Optional)
  setExternalContext('your context')
  return (
    
      {getRouter()}
      
        
      
    
  )
}

React Native 页面调试工具 react-native-vdebug_第1张图片

 React Native 页面调试工具 react-native-vdebug_第2张图片

 React Native 页面调试工具 react-native-vdebug_第3张图片

 

参考链接:

https://www.npmjs.com/package/react-native-vdebug

https://chat.xutongbao.top/ 

你可能感兴趣的:(web前端,react,native,react.js,javascript)