react-native-firebase/tests/app.js

32 lines
674 B
JavaScript
Raw Normal View History

2018-08-25 12:40:25 +00:00
/* eslint-disable import/extensions,import/no-unresolved */
import React, { Component } from 'react';
import { AppRegistry, Text, View } from 'react-native';
import bridge from 'jet/platform/react-native';
import firebase from 'react-native-firebase';
require('sinon');
require('should-sinon');
require('should');
class Root extends Component {
constructor(props) {
super(props);
this.state = {
message: '',
};
bridge.setBridgeProperty('module', firebase);
}
render() {
return (
<View>
<Text testID="messageText">{this.state.message}</Text>
</View>
);
}
}
AppRegistry.registerComponent('testing', () => Root);