强子
Results
1
comments of
强子
遇到这种问题,我的解决方案是获取行数,行数 * 固定行高,然后在标签中再设置一下lineHeight,就能完美解决问题 let content = await NativeModules.RNTextSize.measure({ text: 'xxxxxx....' .... }) const {lineCount = 0} = content; const textHeight = lineCount * 20;