To simplify our workflow, use the React Native Shadow Generator tool to generate the code for a box shadow and see a preview of the box shadow on both Android and iOS. Cross-platform box shadow limitations While we applied a standard box shadow, there are use cases when we may need full...
1 @react-native-async-storage/async-storage 1.21.0 是 @react-native-oh-tpl/async-storage 链接 2 @react-native-camera-roll/camera-roll 6.0.0 是 @react-native-oh-tpl/camera-roll 链接 3 @react-native-clipboard/clipboard 1.13.2 是 @react-native-oh-tpl/clipboard 链接 4 @react-native-communi...
mount: (container) => { if (container instanceof HTMLElement) { if (document.body.attachShadow) { const shadowHost = container; // 当 mode 设置为 "open" 时,页面中的 JavaScript 可以通过影子宿主的 shadowRoot 属性访问影子 DOM 的内部 const shadowRoot = shadowHost.shadowRoot || shadowHost.at...
想像一下,一个单纯不依赖 UI 的业务逻辑 hook,我们开箱即用。不仅可以在不同的项目中复用,甚至还可以跨平台使用,react、react native、react vr 等等。编写自定义 hook 也需要以 use 开头,这样保证可以配合 eslint 插件使用。在 custom hooks 中也可以调用其他 hook,当前的 hook 也可以被其他 hook 或者组件调用...
"react-native-shadow": "^1.2.2", "react-native-svg": "12.0.3", "react-native-vector-icons": "6.6.0", "react-native-web": "^0.9.13", "react-navigation": "4.0.10", "react-navigation-drawer": "2.3.3", "react-navigation-stack": "1.10.3", ...
nativewind feat: add nativewind demo (react-native-oh-library#697) Aug 1, 2024 progress-view-capi test:新增progress-view capi化的测试用例、demo (react-native-oh-library#1308) Oct 15, 2024 qrcode-generator perf:优化qrcode-generator代码 Jun 4, 2024 react-content-loader test: 删除speed属性,...
Bump React Native Gradle plugin to 0.0.6 (9573d7b84d by @cortinico) Don't require yarn for codegen tasks (d5da70e17e by @danilobuerger) Fixed Fix dynamic_cast (RTTI) by adding key function to ShadowNodeWrapper and related classes (58a2eb7f37 by @kmagiera) Pin use-subscription to ...
不仅可以在不同的项目中复用,甚至还可以跨平台使用,react、react native、react vr 等等。 编写自定义 hook 也需要以 use 开头,这样保证可以配合 eslint-plugin-react-hooks 插件使用。 注意:eslint-plugin-react-hooks 会帮你自动声明依赖,可能会造成一些严重的问题。 在custom hooks 中也可以调用其他 hook,当前...
不仅可以在不同的项目中复用,甚至还可以跨平台使用,react、react native、react vr 等等。编写自定义 hook 也需要以 use 开头,这样保证可以配合 eslint 插件使用。在 custom hooks 中也可以调用其他 hook,当前的 hook 也可以被其他 hook 或者组件调用。以官网上这个获取好友状态的自定义 Hook 为例:...
Animated: Realign the shadow tree and the native tree when the user finishes interacting with the app. (a8786fc1df by @cipolleschi) codegen: Fix codegen failing in a pnpm monorepo because of missing yargs (3e084bc159 by @tido64) c++: Upstream fixes for build errors in React Native Window...