diff --git a/components/AppInfoFooter.js b/components/AppInfoFooter.js new file mode 100644 index 000000000..dd9dd76ad --- /dev/null +++ b/components/AppInfoFooter.js @@ -0,0 +1,31 @@ +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +import React from 'react'; +import { StyleSheet, View } from 'react-native'; +import { colors, Text } from 'react-native-elements'; +import Constants from 'expo-constants'; + +import { getAppName } from '../utils/Device'; + +const AppInfoFooter = () => ( + + {`${getAppName()}`} + {`${Constants.nativeAppVersion} (${Constants.nativeBuildVersion})`} + {`Expo Version: ${Constants.expoVersion}`} + +); + +const styles = StyleSheet.create({ + container: { + margin: 15 + }, + text: { + color: colors.grey4, + fontSize: 15 + } +}); + +export default AppInfoFooter; diff --git a/components/BrowserListItem.js b/components/BrowserListItem.js new file mode 100644 index 000000000..7526184cd --- /dev/null +++ b/components/BrowserListItem.js @@ -0,0 +1,34 @@ +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +import React from 'react'; +import { ListItem } from 'react-native-elements'; +import PropTypes from 'prop-types'; + +import { openBrowser } from '../utils/WebBrowser'; + +const BrowserListItem = ({item, index}) => ( + { + openBrowser(item.url); + }} + /> +); + +BrowserListItem.propTypes = { + item: PropTypes.shape({ + name: PropTypes.string.isRequired, + icon: PropTypes.string.isRequired, + url: PropTypes.string.isRequired + }).isRequired, + index: PropTypes.number.isRequired +}; + +export default BrowserListItem; diff --git a/components/ButtonListItem.js b/components/ButtonListItem.js new file mode 100644 index 000000000..99e718e0b --- /dev/null +++ b/components/ButtonListItem.js @@ -0,0 +1,25 @@ +/** + * This Source Code Form is subject to the terms of the Mozilla Public + * License, v. 2.0. If a copy of the MPL was not distributed with this + * file, You can obtain one at http://mozilla.org/MPL/2.0/. + */ +import React from 'react'; +import { StyleSheet } from 'react-native'; +import { Button } from 'react-native-elements'; +import PropTypes from 'prop-types'; + +const ButtonListItem = ({item}) => ( +