我正在寻找可用于 AES 128 加密的任何反应本机库。就像是:
节点中的 crypto.createCipheriv(algorithm, key, iv[, options])
我只找到了 react-native-aes 但这适用于 256 加密,而不是 128
谢谢!
我在我的项目中使用了这个命令:
react-native upgrade
当我尝试构建应用程序时,我收到错误:
android.app.Application无法强制转换为com.facebook.react.ReactApplication
我真的不知道如何解决这个问题.有提示吗?
您好我正在创建一个网格,我的班级中有这个构造函数
export class Grid extends Component {
constructor (props) {
super(props)
var ds = new ListView.Datasource({rowHasChanged: (r1, r2) => r1 !== r2})
this.state = {dataSource: ds.cloneWithRows(this._genRows({}))}
}
.
.
.
}
Run Code Online (Sandbox Code Playgroud)
我尝试运行时遇到以下错误:
Undefined不是构造函数(评估'new)_reactNative.ListView.Datasource({rowHasChanged:function rowHasChanged(r1,r2){returnr1!== r2;}})')
有人可以帮我一把吗?先感谢您!
我正在尝试为我的 react 组件创建一些样式,如下所示:
var styles = StyleSheet.create({
/*Pinout*/
/*GPIO Shapre*/
gpio_outer: {
background: '#222222',
borderRadius: 5,
height: 26,
width: 26,
},
})
Run Code Online (Sandbox Code Playgroud)
我正在添加它
编译代码并尝试在浏览器上运行后,我从浏览器控制台得到了这个:
TypeError: StyleSheet.create is not a function
Run Code Online (Sandbox Code Playgroud)
你知道会发生什么吗?提前致谢
我正在尝试发出和监听事件。发射正在工作,但是当我尝试收听应用程序时。任何人都可以帮我解决这个问题吗?
这是代码
export class EmitEvents extends EventEmitter {
constructor () {
super()
this.valid_devices_list = {}
}
_discover() {
this.emit('found');
this.on('found', function () {
console.log('Got it!')
})
}
}
Run Code Online (Sandbox Code Playgroud)
当我执行它 this.on 给我一个错误
this.on 不是函数
这有什么帮助吗?先感谢您!