laogui
laogui
使用svg包,项目已经引入react-native-svg 目前只能通过 `import {Home} from '@icon-park/svg';` 导入渲染函数,然后`const svg = Home({theme: 'outline'});`转换成svg数据,但这时又遇到一个问题,react-native-svg 不支持解析``,需要把这个标签替换掉。 目前用过下面的方法可以正常使用,但不是完美的方案,无法按需导入,需要 import * as Icon 全量导入才能用Icon[name]渲染函数。 ```javascript import React from 'react' import * as Icon from '@icon-park/svg' import...
 `Warning: findDOMNode is deprecated in StrictMode. findDOMNode was passed an instance of Blueprint4.ResizeSensor which is inside StrictMode. Instead, add a ref directly to the element you want to reference....
_Note: erase all explanatory text from this template, replacing it with your words/images._ 📝 **DESCRIPTION:** _Briefly explain the solution (this will make it easier for the reviewer to confirm that...
能不能将右边的字母高度固定,字母少了居中显示,像微信一样。 还有个问题,如果开头字母不是字母,而是其他字符也不好处理,因为json键值不能是汉字或者数字。
看代码SearchBar里面的InputItem有问题
不是纯expo项目,但用到了Expo modules,现在android 打包报错 ``` import expo.modules.ReactActivityDelegateWrapper; import com.reactnative.hybridnavigation.ReactAppCompatActivity; public class MainActivity extends ReactAppCompatActivity { ... @Override protected ReactActivityDelegate createReactActivityDelegate() { return new ReactActivityDelegateWrapper(this, BuildConfig.IS_NEW_ARCHITECTURE_ENABLED, new DefaultReactActivityDelegate( this, getMainComponentName(), // If...
今天更新了Picker组件还有两个问题: 1. WheelPicker滑动一个条目有时候不生效,多滑几个值就没问题。还是`const _index = Math.ceil(offsetY / itemHeight) + 1 `计算有误,滑动换了一个值,但_index没变。 2. Picker组件在ios下初始值value不生效,android没问题,每次打开都是选中第一个,用setTimeout可以解决 ``` useEffect(() => { setTimeout(() => { flatListRef.current?.scrollToIndex({ index: selectedIndex, animated: false, }) }, 100) }, [selectedIndex])...
导致所有使用了modal的Picker组件遮罩都无法全屏,遮罩是黑色的,statusbar是白色的,体验不太好
like https://polotno.com/demo ?