New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details
Socket
Book a DemoSign in
Socket

react-native-dir-viewer

Package Overview
Dependencies
Maintainers
1
Versions
2
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

react-native-dir-viewer

test

latest
Source
npmnpm
Version
0.1.1
Version published
Maintainers
1
Created
Source

react-native-dir-viewer

react-native-dir-viewer provide a component for intuitively visualizing directory structure (aka a simple GUI for your directory).

It supports:

  • view basic info: modify time and content size
  • navigate with back and forward (just like mac finder)
  • create/rename/delete file/dir
  • file edit (utf-8 content only)

Installation

The lib depends on react-native-file-access for file operation, you need to install it first:

npm install react-native-file-access
npx pod-install

Then:

npm install react-native-dir-viewer

Usage

import * as React from 'react';

import { SafeAreaView } from 'react-native';
import { Dirs } from 'react-native-file-access';
import { DirReader } from 'react-native-dir-viewer';

export default function App() {
  return (
    <SafeAreaView>
      <DirReader
        baseDir={Dirs.CacheDir}
        /* optional */
        listHeight={400}
        /* optional */
        containerStyle={{}}
      />
    </SafeAreaView>
  );
}

Currently DirReader component not provide custom style control capability, it's mainly used for debug purpose

License

MIT

Keywords

react-native

FAQs

Package last updated on 01 May 2023

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