1
React VR支持utf-8嗎?如何在反應vr中使用utf-8?
例子:
export default class vrhw extends React.Component {
render() {
return (
<View>
<Pano source={asset('chess-world.jpg')}/>
<Text
style={{
backgroundColor: '#777879',
fontSize: 0.8,
fontWeight: '400',
layoutOrigin: [0.5, 0.5],
paddingLeft: 0.2,
paddingRight: 0.2,
textAlign: 'center',
textAlignVertical: 'center',
transform: [{translate: [0, 0, -3]}],
}}>
黎躍春
</Text>
</View>
);
}
};
AppRegistry.registerComponent('vrhw',() => vrhw);
http://react-vr.org – liyuechun
HTTP://bbs.react-vr。 org – liyuechun
嘗試一下,你會看到。 –