diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-18 23:09:52 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-18 23:09:52 +0000 |
| commit | 829998568f4e8a44971a9fe7e46a76ec9316cc81 (patch) | |
| tree | da54e78dbf12ebc92b5d6517d38eddcf7cc269b4 /mobile/hello-world/components | |
| parent | fd80834e586232d28b8763a1e399ffa57d14fe2d (diff) | |
fixed folder structure
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(); -}); |
