diff options
Diffstat (limited to 'mobile/hello-world/components')
| -rw-r--r-- | mobile/hello-world/components/StyledText.js | 8 | ||||
| -rw-r--r-- | mobile/hello-world/components/TabBarIcon.js | 17 | ||||
| -rw-r--r-- | mobile/hello-world/components/__tests__/StyledText-test.js | 10 |
3 files changed, 0 insertions, 35 deletions
diff --git a/mobile/hello-world/components/StyledText.js b/mobile/hello-world/components/StyledText.js deleted file mode 100644 index 24c7b9b..0000000 --- a/mobile/hello-world/components/StyledText.js +++ /dev/null @@ -1,8 +0,0 @@ -import React from 'react'; -import { Text } from 'react-native'; - -export class MonoText extends React.Component { - render() { - return <Text {...this.props} style={[this.props.style, { fontFamily: 'space-mono' }]} />; - } -} diff --git a/mobile/hello-world/components/TabBarIcon.js b/mobile/hello-world/components/TabBarIcon.js deleted file mode 100644 index 2f1ebed..0000000 --- a/mobile/hello-world/components/TabBarIcon.js +++ /dev/null @@ -1,17 +0,0 @@ -import React from 'react'; -import { Icon } from 'expo'; - -import Colors from '../constants/Colors'; - -export default class TabBarIcon extends React.Component { - render() { - return ( - <Icon.Ionicons - name={this.props.name} - size={26} - style={{ marginBottom: -3 }} - color={this.props.focused ? Colors.tabIconSelected : Colors.tabIconDefault} - /> - ); - } -}
\ No newline at end of file diff --git a/mobile/hello-world/components/__tests__/StyledText-test.js b/mobile/hello-world/components/__tests__/StyledText-test.js deleted file mode 100644 index 04453f8..0000000 --- a/mobile/hello-world/components/__tests__/StyledText-test.js +++ /dev/null @@ -1,10 +0,0 @@ -import 'react-native'; -import React from 'react'; -import { MonoText } from '../StyledText'; -import renderer from 'react-test-renderer'; - -it('renders correctly', () => { - const tree = renderer.create(<MonoText>Snapshot test!</MonoText>).toJSON(); - - expect(tree).toMatchSnapshot(); -}); |
