New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@tkc-fe/react-native-navigation-crawler

Package Overview
Dependencies
Maintainers
3
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@tkc-fe/react-native-navigation-crawler

This package crawls through a React Native project and then optionally maps out the different routes and how they are linked.

  • 0.0.4
  • latest
  • Source
  • npm
  • Socket score

Version published
Maintainers
3
Created
Source
INTERNAL DEVELOPER GUIDE

React Native Navigation Crawler

Introduction

This package will crawl react native packages looking for screens - it will then optionally output a simple HTML site that will allow you to see the different screens relations and open files directly.

Usage

npx @tkc-fe/react-native-navigation-crawler <route-input> <html-output>

Usage Example

npx @tkc-fe/react-native-navigation-crawler ./src/stacks/Drawer.tsx ./crawl-output

Installation

yarn add @tkc-fe/react-native-navigation-crawler or npm i @tkc-fe/react-native-navigation-crawler

Example 📕


import ReactRouteCrawler from '@tkc-fe/react-native-navigation-crawler'

const crawler = new ReactRouteCrawler()
const screens = crawler.getComponentScreens(
    './src/stacks/RootStack.tsx',   // The route to map screens within.
    true                            // If we should do this recursively.
)                           

Config ⚙️


// You can also pass different optional paraments for the crawlers setup.
const crawler = new ReactRouteCrawler({
    configPath:         './tsconfig.json',      // The location of the tsconfig -- Default: ./tsconfig.json
    sourceFilesGlob:    './src/**/*.tsx'        // The glob pattern for files   -- Default: ./src/**/*.tsx
})

FAQs

Package last updated on 31 Aug 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc