Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我为一个 react-native 项目创建了一个 NPM 包。
--- MyComponent.tsx --- /styles/MyComponent.style.ts
我将文件组件与样式文件分开。
但白屏并无法操作应用程序。
我很惊讶。StyleSheet不适用于 NPM 包。我们需要直接在stykeprops 文件中声明。
StyleSheet
styke