我有一个关于在React Native应用中结合React元素的问题。这种情况是否可能?
import React, { Component } from 'react';
import {
AppRegistry,
StyleSheet,
Text,
View,
Image,
ListView,
Switch,
TextInput,
AsyncStorage,
BackAndroid,
Navigator,
TouchableOpacity, } from 'react-native';
var ReactDOM = require('react-dom');
var Barcode = require('react-barcode');
class Third extends React.Component {
ReactDOM.render(
<Barcode value="http://github.com/kciter" />,
mountNode
);
};
我之所以提问,是因为我在寻找适用于React-Native的条形码生成模块时遇到了困难。有什么建议吗?
谢谢您的回复,
Domen