Neo Luo

Results 3 comments of Neo Luo

I resolved this issue by update metro-react-native-babel-preset version My project react-native:0.68.0 metro version:0.59.0 Update metro version to 0.67.0 You can use this link to find the appropriate metro version of...

监听日期选择框,手动滚动到对应默认选中的日期未知 ```tsx // 控制日期选择 const [visibleCalendarPicker, setVisibleCalendarPicker] = useState(false) useEffect(() => { if (visibleCalendarPicker) { const timeout = setTimeout(() => { const elementCalendar = document.querySelector('.adm-calendar-picker-view-body'); const element = document.querySelector('.adm-calendar-picker-view-cell-selected-begin'); if...

包一层 函数 同意处理 Response,绕过报错: //包一层 处理返回 async function requestUmi(url, params: { method: 'GET' }): Response { return await request(url, params).then(hasResponseError); } // 检测返回结果是否有错误 function hasResponseError(response) { if (response.code !== 200)...