已知文件路徑
const url = 'file:///data/user/0/com.ycdj/files/media/325345345/partyCompute/143553.mp4'
render中進行渲染時,寫法如下:
<Image source={{uri: url}} style={{width:50, height:50}} resizeMode='contain' /> //請注意,視頻必須指定一個寬高
已知文件路徑
const url = 'file:///data/user/0/com.ycdj/files/media/325345345/partyCompute/143553.mp4'
render中進行渲染時,寫法如下:
<Image source={{uri: url}} style={{width:50, height:50}} resizeMode='contain' /> //請注意,視頻必須指定一個寬高
序言 開始研究react-native來弄安卓和IOS ^_^~~~.歡迎騷擾:[email protected] 參考資料地址:https://reactnative.cn/docs/
//相當於button使用 <TouchableHighlight //點擊後的背景顏色 underlayColor="#1FB579"