diff --git a/__tests__/SectorsScreen.test.js b/__tests__/SectorsScreen.test.js new file mode 100644 index 00000000..6bf2ad7d --- /dev/null +++ b/__tests__/SectorsScreen.test.js @@ -0,0 +1,11 @@ +import 'react-native'; +import React from 'react'; +import SectorsScreen from '../src/Screens/SectorsScreen'; +import renderer from 'react-test-renderer'; + +it('renders correctly', () => { + const tree = renderer + .create() + .toJSON(); + expect(tree).toMatchSnapshot(); +}); diff --git a/__tests__/__snapshots__/App.js.snap b/__tests__/__snapshots__/App.js.snap index 496d0c6a..3f4ffede 100644 --- a/__tests__/__snapshots__/App.js.snap +++ b/__tests__/__snapshots__/App.js.snap @@ -2,471 +2,794 @@ exports[`renders correctly 1`] = ` - + + + Hospitais + + + + + + + - - - + + + Asa Norte + + + + + + - + + + + + + Hospital Regional + + + + + + + Gama + + + + + + + Hospital Gama + + + + + + + Guará + + + + + + - - - - - - Matrícula - - - - - - - - - - - - Senha - - - - - - - + Hospital Guará + + + + + + + UPA Guará + + + + + + + Taguatinga + + + + + + - - - - - Entrar - - - - - - + } + uppercase={false} + virtual={undefined} + > + Hospital Taguatinga + - + + + + + UPA Taguatinga + + + - + `; diff --git a/__tests__/__snapshots__/EditScreen.test.js.snap b/__tests__/__snapshots__/EditScreen.test.js.snap index 5c0cb152..bc733f3e 100644 --- a/__tests__/__snapshots__/EditScreen.test.js.snap +++ b/__tests__/__snapshots__/EditScreen.test.js.snap @@ -12,734 +12,558 @@ exports[`renders correctly 1`] = ` } } > - - - - - - + + + - - - + /> - - - - - - - + + + + + - + - - - - - - - - Hospital - - + + + + + + - - - - - - - - setor - - + + + Hospital + + + + + - - - - - - - - Editar senha - - + + + setor + + + + + - - - - - - + - + testID={undefined} + tvParallaxProperties={undefined} + > - Salvar + + Editar senha + + - + + + + + + + + Salvar + + + + + + - + `; diff --git a/__tests__/__snapshots__/SectorsScreen.test.js.snap b/__tests__/__snapshots__/SectorsScreen.test.js.snap new file mode 100644 index 00000000..6bd6bd95 --- /dev/null +++ b/__tests__/__snapshots__/SectorsScreen.test.js.snap @@ -0,0 +1,436 @@ +// Jest Snapshot v1, https://goo.gl/fbAQLP + +exports[`renders correctly 1`] = ` + + + + + + Setores + + + + + + + + + + + + UTI + + + + + + + Pediatria + + + + + + + Centro de Internações + + + + + + + Salas cirúrgicas + + + + + + + Unidades de Hemodialise + + + + + + + + +`; diff --git a/src/Components/routes.js b/src/Components/routes.js index a7e2c9d2..b6138014 100644 --- a/src/Components/routes.js +++ b/src/Components/routes.js @@ -2,6 +2,7 @@ import NewManager from '../Routes/NewManager'; import Doctors from '../Routes/Doctors'; import Logout from '../Routes/Logout'; import Profile from '../Routes/Profile'; +import HospitalsScreen from '../Screens/HospitalsScreen'; import {DrawerNavigator} from 'react-navigation'; export default DrawerNavigator({ @@ -16,6 +17,9 @@ export default DrawerNavigator({ }, Logout: { screen: Logout + }, + 'Ver Hospitais': { + screen: HospitalsScreen } }, { drawerWidth: 300 diff --git a/src/Screens/SectorsScreen.js b/src/Screens/SectorsScreen.js new file mode 100644 index 00000000..59cd4c54 --- /dev/null +++ b/src/Screens/SectorsScreen.js @@ -0,0 +1,34 @@ +import React from 'react'; +import {Container, Header, Content, List, ListItem, Text, Body, Title} from 'native-base'; + +class SectorsScreen extends React.Component { + + constructor(props) { + super(props); + this.state = { + sectors: ['UTI','Pediatria','Centro de Internações','Salas cirúrgicas','Unidades de Hemodialise'] + }; + } + + render() { + return ( + +
+ + Setores + +
+ + + + {item} + + } /> + +
+ ); + } +} + +export default SectorsScreen;