有没有办法为 React Native 应用程序创建文档(例如reactnative.dev/react-styleguidist)?
最佳答案
您可以使用“react-styleguidist”或“storybook”,但使用“react-native-web”来渲染组件。
这并不适用于所有用例(特别是仅适用于 Android/iOS 组件),但希望它能够涵盖组件库中的大多数用例。
Storybook 有关于如何部署这些文档的指南: https://storybook.js.org/tutorials/intro-to-storybook/react-native/en/deploy/
关于react-native - 从 React Native 应用程序创建自己的 Web 文档,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66383450/