🚀 Socket Launch Week Day 5:Introducing Repository Access Permissions and Custom Roles.Learn more
Sign In

nativelight

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

nativelight

## environment

latest
npmnpm
Version
0.0.1
Version published
Weekly downloads
2
Maintainers
1
Weekly downloads
 
Created
Source

NativeLight

environment

environment-setup(If it is not version 7.2, switch to 7.2)

1. install

npm ci

2. run for android

npm run android

or

npm run start then input a in terminal

3. run for web

npm run start:web

开发流程

1. 确定类型

基础组件放在src/components/basic下 业务组件放在src/components/business

2. 目录结构

   componentName
      -  index.ts // 必须有,用于导出组件,以及导出默认主组件
      -  demo.tsx // 必须有,使用示例
      -  index.md // 必须有,组件使用文档
      -  componentName.tsx // 至少有一个主组件
      -  type.ts // 如果组件用到比较多或复杂的类型,需要单独定义在type文件中

3. 调试

暂时先直接在app.tsx中调试,同时避免提交对app.tsx的修改以避免冲突,后续再研究更好的调试方案 调试时除了npm run android,同时也要npm run start:web,避免web端的异常

FAQs

Package last updated on 04 Aug 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