加载中
RN验证码组件

import React, { useState, FunctionComponent, useMemo, useCallback, useRef, } from 'react'; import { SafeAreaView, View, Text, FlatList, StyleSheet, TextInput, ......

2023/01/10 16:39
22
React Hooks useContext使用案例

import React, { useContext, useState} from "react"; import ReactDOM from "react-dom"; import "./styles.css"; const AppContext = React.createContext({}); const Navbar = () => { c...

2020/11/22 11:56
1.6K
js使用await不catch也不会产生崩溃。有些时候为了代码简洁,且不需要关注异常的情况下可以去掉

promise1 = () => { return new Promise((resolve, reject) => { setTimeout(() => { resolve('foo'); }, 300); }); } async test1() { const result = await this.promise1() ......

2020/09/08 15:26
882
FlatList填充满屏幕

FlatList inherits ScrollView's props, so solution for ScrollView will work: Here is the original Github issue for......

RN页面获取组件位置和大小的方法

{ const handle = findNodeHandle(this.button); UIManager.measure(handle, (x, y, width, height, pageX, pageY) => { Log.w(TAG, "UIManager.measure pageY=" + p......

2020/04/09 10:03
2K
Ubuntu下Jenkins打包RN Android Apk项目遇到的问题

0.直接./gradlew assembleRelease卡在bundleReleaseJsAndAssets任务 https://github.com/RicardoCao-Biker/RICO-BLOG/issues/10 1.System limit for number of file watchers reached, watc...

自定义组件使用ANTD RN 中主题颜色的方式

render() { return ( {this.createNavigationBarWithTheme} ...

2019/09/28 20:33
1.6K
RN高性能列表总结

https://github.com/bolan9999/react-native-largelist https://github.com/Flipkart/recyclerlistview...

2019/09/27 11:45
346
ReactNative弹出Modal对话框

const RootStackWithModal = createStackNavigator( { Main: { screen: RootNavigator, }, ParticipantModal: { screen: ParticipantModal, }, ......

react-native link 报错

react-native link (0.50版本后) rnpm-install info Linking react-native-picker ios dependency rnpm-install ERR! Something went wrong while linking. Error: Cannot read property '...

Rn React-native-navigation playgroud在Android上的运行

git clone https://github.com/wix/react-native-navigation cd react-native-navigation npm install npm start npm run install-android......

RN解决Input键盘遮挡问题

0 I used KeyboardAvoidingView, it also doesn't work. I found this solution, You can take the base code. Installation npm i react-native-keyboard-aware-scroll-view --save Usage i...

2019/07/02 11:13
694
RN Listview在设置 flexDirection: 'row', flexWrap: 'wrap',后不能完全显示数据的问题

6 ReactNative ListView component calculates how many rows to render on initial component mount using initialListSizeproperty. By default the initialListSize is set to 10. For re...

2019/06/30 10:47
736

没有更多内容

加载失败,请刷新页面

返回顶部
顶部