diff options
| author | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-18 23:36:19 +0000 |
|---|---|---|
| committer | Kumar Damani <kumar.damani@mail.utoronto.ca> | 2019-02-18 23:36:19 +0000 |
| commit | 2f628cab394e05e6c7f61cbdd7aaa5364bd57e93 (patch) | |
| tree | 6b2aca0ff9ffc88fff322ed0d31f971c5a157b62 /mobile/hello-world/components | |
| parent | 1534f3103d1381d14f899c28904d98b662c83cb8 (diff) | |
| parent | e29d2e6c05f9fb2e6b630fed48904943625ad358 (diff) | |
pulling in latest master
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(); -}); |
