Files
react-native-firebase/tests/app.playground.js
2019-11-25 13:27:38 +00:00

70 lines
1.7 KiB
JavaScript

/* eslint-disable no-console */
/*
* Copyright (c) 2016-present Invertase Limited & Contributors
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this library except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*
*/
import React, { Component } from 'react';
import { AppRegistry, Image, StyleSheet, View } from 'react-native';
import '@react-native-firebase/dynamic-links';
class Root extends Component {
constructor(props) {
super(props);
try {
this.runSingleTest().catch(console.error);
} catch (error) {
console.error(error);
}
}
async runSingleTest() {}
render() {
return (
<View style={[styles.container, styles.horizontal]}>
<Image
source={{
uri:
'https://github.com/invertase/react-native-firebase-starter/raw/master/assets/ReactNativeFirebase.png',
}}
style={[styles.logo]}
/>
</View>
);
}
}
const styles = StyleSheet.create({
container: {
flex: 1,
justifyContent: 'center',
},
horizontal: {
flexDirection: 'column',
justifyContent: 'center',
alignItems: 'center',
padding: 10,
},
logo: {
height: 120,
marginBottom: 16,
width: 135,
},
});
AppRegistry.registerComponent('testing', () => Root);