Jacky's blog
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)

Jack Yang

编程; 随笔
首页
  • 学习笔记

    • web
    • android
    • iOS
    • vue
  • 分类
  • 标签
  • 归档
收藏
  • tool
  • algo
  • python
  • java
  • server
  • growth
  • frida
  • blog
  • SP
  • more
GitHub (opens new window)
  • web
  • web concept
  • javascript

  • css

  • vue

  • react

    • React 完整学习指南
    • React Hooks 完整指南
    • REACT NATIVE
      • guides
      • components
      • api
      • architechture
        • Rendering
        • Glossary
      • Troubleshooting
        • node 命令不识别问题
    • REACT 实用代码片段
    • REACT 高频问题
  • nextjs

  • module

  • web faq
  • web3

  • more

  • 《web》
  • react
Jacky
2023-11-12
目录

REACT NATIVE

# guides

# components

# api

# architechture (opens new window)

# Rendering

# Glossary

Yoga

Flexible Layouts with Yoga (opens new window) Build flexible layouts on any platform with a highly optimized open source layout engine designed with speed, size, and ease of use in mind.

React Native 组件通常使用 Yoga 进行布局

# Troubleshooting

# node 命令不识别问题

使用 android studio 打开项目, 可能会出现 node 不识别的问题

解决方案:

  • 打开 node_modules/@react-native-community/cli-platform-android/native_modules.gradle
  • 将 Runtime.getRuntime().exec 方法的第二个参数替换为包含 node 的路径。 如下
String command = "node";
String path = "/path/to/directory"; // 替换为实际的路径
String[] envp = new String[] {"PATH=/usr/bin:/bin:/path/to/node_directory"}; // 替换为包含 node 的路径
Process process = Runtime.getRuntime().exec(command, envp, new File(path));
1
2
3
4
#react
上次更新: 2025/10/16, 22:10:39
React Hooks 完整指南
REACT 实用代码片段

← React Hooks 完整指南 REACT 实用代码片段→

最近更新
01
npx 使用指南
10-12
02
cursor
09-28
03
inspect
07-20
更多文章>
Theme by Vdoing | Copyright © 2019-2025 Jacky | MIT License
  • 跟随系统
  • 浅色模式
  • 深色模式
  • 阅读模式