Commit 8a54ad09d8a936542afa8c94852f493bac3595da

Authored by Guillermo Osorio
1 parent 652e8490

Commit inicial

Too many changes to show.

To preserve performance only 31 of 114 files are displayed.

  1 +{
  2 + "presets": ["babel-preset-expo"],
  3 + "env": {
  4 + "development": {
  5 + "plugins": ["transform-react-jsx-source"]
  6 + }
  7 + }
  8 +}
  1 +{
  2 + "extends": "rallycoding",
  3 + "plugins": ["react", "react-native"],
  4 + "settings": {
  5 + "import/resolver": {
  6 + "node": {
  7 + "extensions": [".js", ".ios.js", ".android.js"]
  8 + }
  9 + }
  10 + },
  11 + "ecmaFeatures": {
  12 + "jsx": true
  13 + },
  14 + "rules": {
  15 + "react/require-extension": "off",
  16 + "semi": [2, 'never']
  17 + },
  18 + "globals": {
  19 + "fetch": false
  20 + }
  21 +}
  1 +# See https://help.github.com/ignore-files/ for more about ignoring files.
  2 +
  3 +# expo
  4 +.expo/
  5 +
  6 +# dependencies
  7 +/node_modules
  8 +
  9 +# misc
  10 +.env.local
  11 +.env.development.local
  12 +.env.test.local
  13 +.env.production.local
  14 +
  15 +npm-debug.log*
  16 +yarn-debug.log*
  17 +yarn-error.log*
  1 +import React, { Component } from 'react'
  2 +import { Provider } from 'react-redux'
  3 +import {
  4 + createDrawerNavigator,
  5 + createStackNavigator,
  6 +} from 'react-navigation'
  7 +
  8 +import moment from 'moment'
  9 +import 'moment/locale/es'
  10 +
  11 +import CustomDrawerContentComponent from './components/Menu'
  12 +import store from './redux/store'
  13 +import MainScreen from './screens/MisSolicitudes'
  14 +import NuevaSolicitud from './screens/NuevaSolicitud'
  15 +import DetalleSolicitud from './screens/DetalleSolicitud'
  16 +import Estadisticas from './screens/Estadisticas'
  17 +import Ayuda from './screens/Ayuda'
  18 +import BuscarSolicitudes from './screens/BuscarSolicitudes'
  19 +import ListaInstituciones from './screens/ListaInstituciones'
  20 +import ReferenciasSolicitud from './screens/ReferenciasSolicitud'
  21 +import ConfirmarSolicitud from './screens/ConfirmarSolicitud'
  22 +import CorreoUsuario from './screens/CorreoUsuario'
  23 +import DatosUsuario from './screens/DatosUsuario'
  24 +import Splash from './screens/Splash'
  25 +
  26 +import css from './common/styles'
  27 +
  28 +moment.locale('es-ES')
  29 +
  30 +
  31 +export default class App extends Component {
  32 +
  33 + componentWillMount() {
  34 + }
  35 +
  36 + render() {
  37 + // buscar solicitudes
  38 + // estadisticas
  39 + const HomeScreenNavigator = createStackNavigator({
  40 + Main: { screen: MainScreen },
  41 + DetalleSolicitud: { screen: DetalleSolicitud }
  42 + })
  43 +
  44 + const DatosUsuarioNavigator = createStackNavigator({
  45 + CorreoUsuario: { screen: CorreoUsuario },
  46 + DatosUsuario: { screen: DatosUsuario }
  47 + })
  48 +
  49 + const NuevaSolicitudNavigator = createStackNavigator({
  50 + ListaInstituciones: { screen: ListaInstituciones },
  51 + NuevaSolicitud: { screen: NuevaSolicitud },
  52 + ReferenciasSolicitud: { screen: ReferenciasSolicitud },
  53 + ConfirmarSolicitud: { screen: ConfirmarSolicitud },
  54 + })
  55 +
  56 + const BuscarSolicitudesNavigator = createStackNavigator({
  57 + BuscarSolicitudes: { screen: BuscarSolicitudes },
  58 + DetalleSolicitud: { screen: DetalleSolicitud }
  59 + })
  60 +
  61 + const DrawerNavigator = createDrawerNavigator({
  62 + MisSolicitudes: {
  63 + screen: HomeScreenNavigator,
  64 + navigationOptions: () => ({
  65 + title: 'Mis Solicitudes',
  66 + headerStyle: css.headerStyle,
  67 + headerTitleStyle: css.headerTitleStyle,
  68 + }),
  69 + },
  70 + NuevaSolicitud: {
  71 + screen: NuevaSolicitudNavigator,
  72 + navigationOptions: () => ({
  73 + title: 'Nueva Solicitud',
  74 + headerStyle: css.headerStyle,
  75 + headerTitleStyle: css.headerTitleStyle
  76 + }),
  77 + },
  78 + BuscarSolicitudes: {
  79 + screen: BuscarSolicitudesNavigator,
  80 + navigationOptions: () => ({
  81 + title: 'Buscar Solicitudes',
  82 + headerStyle: css.headerStyle,
  83 + headerTitleStyle: css.headerTitleStyle
  84 + }),
  85 + },
  86 + Estadisticas: { screen: Estadisticas },
  87 + Ayuda: { screen: Ayuda },
  88 + }, {
  89 + contentComponent: CustomDrawerContentComponent
  90 + })
  91 +
  92 + const MainNavigator = createStackNavigator({
  93 + Splash: {
  94 + screen: Splash,
  95 + },
  96 + DatosUsuarioNavigator: {
  97 + screen: DatosUsuarioNavigator
  98 + },
  99 + DrawerNavigator: { screen: DrawerNavigator }
  100 + }, {
  101 + headerMode: 'none'
  102 + })
  103 + return (
  104 + <Provider store={store}>
  105 + <MainNavigator />
  106 + </Provider>
  107 + )
  108 + }
  109 +}
  1 +import React from 'react'
  2 +import App from './App'
  3 +
  4 +import renderer from 'react-test-renderer'
  5 +
  6 +it('renders without crashing', () => {
  7 + const rendered = renderer.create(<App />).toJSON()
  8 + expect(rendered).toBeTruthy()
  9 +})
  1 +This project was bootstrapped with [Create React Native App](https://github.com/react-community/create-react-native-app).
  2 +
  3 +Below you'll find information about performing common tasks. The most recent version of this guide is available [here](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/README.md).
  4 +
  5 +## Table of Contents
  6 +
  7 +* [Updating to New Releases](#updating-to-new-releases)
  8 +* [Available Scripts](#available-scripts)
  9 + * [npm start](#npm-start)
  10 + * [npm test](#npm-test)
  11 + * [npm run ios](#npm-run-ios)
  12 + * [npm run android](#npm-run-android)
  13 + * [npm run eject](#npm-run-eject)
  14 +* [Writing and Running Tests](#writing-and-running-tests)
  15 +* [Environment Variables](#environment-variables)
  16 + * [Configuring Packager IP Address](#configuring-packager-ip-address)
  17 +* [Customizing App Display Name and Icon](#customizing-app-display-name-and-icon)
  18 +* [Sharing and Deployment](#sharing-and-deployment)
  19 + * [Publishing to Expo's React Native Community](#publishing-to-expos-react-native-community)
  20 + * [Building an Expo "standalone" app](#building-an-expo-standalone-app)
  21 + * [Ejecting from Create React Native App](#ejecting-from-create-react-native-app)
  22 + * [Build Dependencies (Xcode & Android Studio)](#build-dependencies-xcode-android-studio)
  23 + * [Should I Use ExpoKit?](#should-i-use-expokit)
  24 +* [Troubleshooting](#troubleshooting)
  25 + * [Networking](#networking)
  26 + * [iOS Simulator won't open](#ios-simulator-wont-open)
  27 + * [QR Code does not scan](#qr-code-does-not-scan)
  28 +
  29 +## Updating to New Releases
  30 +
  31 +You should only need to update the global installation of `create-react-native-app` very rarely, ideally never.
  32 +
  33 +Updating the `react-native-scripts` dependency of your app should be as simple as bumping the version number in `package.json` and reinstalling your project's dependencies.
  34 +
  35 +Upgrading to a new version of React Native requires updating the `react-native`, `react`, and `expo` package versions, and setting the correct `sdkVersion` in `app.json`. See the [versioning guide](https://github.com/react-community/create-react-native-app/blob/master/VERSIONS.md) for up-to-date information about package version compatibility.
  36 +
  37 +## Available Scripts
  38 +
  39 +If Yarn was installed when the project was initialized, then dependencies will have been installed via Yarn, and you should probably use it to run these commands as well. Unlike dependency installation, command running syntax is identical for Yarn and NPM at the time of this writing.
  40 +
  41 +### `npm start`
  42 +
  43 +Runs your app in development mode.
  44 +
  45 +Open it in the [Expo app](https://expo.io) on your phone to view it. It will reload if you save edits to your files, and you will see build errors and logs in the terminal.
  46 +
  47 +Sometimes you may need to reset or clear the React Native packager's cache. To do so, you can pass the `--reset-cache` flag to the start script:
  48 +
  49 +```
  50 +npm start --reset-cache
  51 +# or
  52 +yarn start --reset-cache
  53 +```
  54 +
  55 +#### `npm test`
  56 +
  57 +Runs the [jest](https://github.com/facebook/jest) test runner on your tests.
  58 +
  59 +#### `npm run ios`
  60 +
  61 +Like `npm start`, but also attempts to open your app in the iOS Simulator if you're on a Mac and have it installed.
  62 +
  63 +#### `npm run android`
  64 +
  65 +Like `npm start`, but also attempts to open your app on a connected Android device or emulator. Requires an installation of Android build tools (see [React Native docs](https://facebook.github.io/react-native/docs/getting-started.html) for detailed setup). We also recommend installing Genymotion as your Android emulator. Once you've finished setting up the native build environment, there are two options for making the right copy of `adb` available to Create React Native App:
  66 +
  67 +##### Using Android Studio's `adb`
  68 +
  69 +1. Make sure that you can run adb from your terminal.
  70 +2. Open Genymotion and navigate to `Settings -> ADB`. Select “Use custom Android SDK tools” and update with your [Android SDK directory](https://stackoverflow.com/questions/25176594/android-sdk-location).
  71 +
  72 +##### Using Genymotion's `adb`
  73 +
  74 +1. Find Genymotion’s copy of adb. On macOS for example, this is normally `/Applications/Genymotion.app/Contents/MacOS/tools/`.
  75 +2. Add the Genymotion tools directory to your path (instructions for [Mac](http://osxdaily.com/2014/08/14/add-new-path-to-path-command-line/), [Linux](http://www.computerhope.com/issues/ch001647.htm), and [Windows](https://www.howtogeek.com/118594/how-to-edit-your-system-path-for-easy-command-line-access/)).
  76 +3. Make sure that you can run adb from your terminal.
  77 +
  78 +#### `npm run eject`
  79 +
  80 +This will start the process of "ejecting" from Create React Native App's build scripts. You'll be asked a couple of questions about how you'd like to build your project.
  81 +
  82 +**Warning:** Running eject is a permanent action (aside from whatever version control system you use). An ejected app will require you to have an [Xcode and/or Android Studio environment](https://facebook.github.io/react-native/docs/getting-started.html) set up.
  83 +
  84 +## Customizing App Display Name and Icon
  85 +
  86 +You can edit `app.json` to include [configuration keys](https://docs.expo.io/versions/latest/guides/configuration.html) under the `expo` key.
  87 +
  88 +To change your app's display name, set the `expo.name` key in `app.json` to an appropriate string.
  89 +
  90 +To set an app icon, set the `expo.icon` key in `app.json` to be either a local path or a URL. It's recommended that you use a 512x512 png file with transparency.
  91 +
  92 +## Writing and Running Tests
  93 +
  94 +This project is set up to use [jest](https://facebook.github.io/jest/) for tests. You can configure whatever testing strategy you like, but jest works out of the box. Create test files in directories called `__tests__` or with the `.test` extension to have the files loaded by jest. See the [the template project](https://github.com/react-community/create-react-native-app/blob/master/react-native-scripts/template/App.test.js) for an example test. The [jest documentation](https://facebook.github.io/jest/docs/en/getting-started.html) is also a wonderful resource, as is the [React Native testing tutorial](https://facebook.github.io/jest/docs/en/tutorial-react-native.html).
  95 +
  96 +## Environment Variables
  97 +
  98 +You can configure some of Create React Native App's behavior using environment variables.
  99 +
  100 +### Configuring Packager IP Address
  101 +
  102 +When starting your project, you'll see something like this for your project URL:
  103 +
  104 +```
  105 +exp://192.168.0.2:19000
  106 +```
  107 +
  108 +The "manifest" at that URL tells the Expo app how to retrieve and load your app's JavaScript bundle, so even if you load it in the app via a URL like `exp://localhost:19000`, the Expo client app will still try to retrieve your app at the IP address that the start script provides.
  109 +
  110 +In some cases, this is less than ideal. This might be the case if you need to run your project inside of a virtual machine and you have to access the packager via a different IP address than the one which prints by default. In order to override the IP address or hostname that is detected by Create React Native App, you can specify your own hostname via the `REACT_NATIVE_PACKAGER_HOSTNAME` environment variable:
  111 +
  112 +Mac and Linux:
  113 +
  114 +```
  115 +REACT_NATIVE_PACKAGER_HOSTNAME='my-custom-ip-address-or-hostname' npm start
  116 +```
  117 +
  118 +Windows:
  119 +```
  120 +set REACT_NATIVE_PACKAGER_HOSTNAME='my-custom-ip-address-or-hostname'
  121 +npm start
  122 +```
  123 +
  124 +The above example would cause the development server to listen on `exp://my-custom-ip-address-or-hostname:19000`.
  125 +
  126 +## Sharing and Deployment
  127 +
  128 +Create React Native App does a lot of work to make app setup and development simple and straightforward, but it's very difficult to do the same for deploying to Apple's App Store or Google's Play Store without relying on a hosted service.
  129 +
  130 +### Publishing to Expo's React Native Community
  131 +
  132 +Expo provides free hosting for the JS-only apps created by CRNA, allowing you to share your app through the Expo client app. This requires registration for an Expo account.
  133 +
  134 +Install the `exp` command-line tool, and run the publish command:
  135 +
  136 +```
  137 +$ npm i -g exp
  138 +$ exp publish
  139 +```
  140 +
  141 +### Building an Expo "standalone" app
  142 +
  143 +You can also use a service like [Expo's standalone builds](https://docs.expo.io/versions/latest/guides/building-standalone-apps.html) if you want to get an IPA/APK for distribution without having to build the native code yourself.
  144 +
  145 +### Ejecting from Create React Native App
  146 +
  147 +If you want to build and deploy your app yourself, you'll need to eject from CRNA and use Xcode and Android Studio.
  148 +
  149 +This is usually as simple as running `npm run eject` in your project, which will walk you through the process. Make sure to install `react-native-cli` and follow the [native code getting started guide for React Native](https://facebook.github.io/react-native/docs/getting-started.html).
  150 +
  151 +#### Should I Use ExpoKit?
  152 +
  153 +If you have made use of Expo APIs while working on your project, then those API calls will stop working if you eject to a regular React Native project. If you want to continue using those APIs, you can eject to "React Native + ExpoKit" which will still allow you to build your own native code and continue using the Expo APIs. See the [ejecting guide](https://github.com/react-community/create-react-native-app/blob/master/EJECTING.md) for more details about this option.
  154 +
  155 +## Troubleshooting
  156 +
  157 +### Networking
  158 +
  159 +If you're unable to load your app on your phone due to a network timeout or a refused connection, a good first step is to verify that your phone and computer are on the same network and that they can reach each other. Create React Native App needs access to ports 19000 and 19001 so ensure that your network and firewall settings allow access from your device to your computer on both of these ports.
  160 +
  161 +Try opening a web browser on your phone and opening the URL that the packager script prints, replacing `exp://` with `http://`. So, for example, if underneath the QR code in your terminal you see:
  162 +
  163 +```
  164 +exp://192.168.0.1:19000
  165 +```
  166 +
  167 +Try opening Safari or Chrome on your phone and loading
  168 +
  169 +```
  170 +http://192.168.0.1:19000
  171 +```
  172 +
  173 +and
  174 +
  175 +```
  176 +http://192.168.0.1:19001
  177 +```
  178 +
  179 +If this works, but you're still unable to load your app by scanning the QR code, please open an issue on the [Create React Native App repository](https://github.com/react-community/create-react-native-app) with details about these steps and any other error messages you may have received.
  180 +
  181 +If you're not able to load the `http` URL in your phone's web browser, try using the tethering/mobile hotspot feature on your phone (beware of data usage, though), connecting your computer to that WiFi network, and restarting the packager. If you are using a VPN you may need to disable it.
  182 +
  183 +### iOS Simulator won't open
  184 +
  185 +If you're on a Mac, there are a few errors that users sometimes see when attempting to `npm run ios`:
  186 +
  187 +* "non-zero exit code: 107"
  188 +* "You may need to install Xcode" but it is already installed
  189 +* and others
  190 +
  191 +There are a few steps you may want to take to troubleshoot these kinds of errors:
  192 +
  193 +1. Make sure Xcode is installed and open it to accept the license agreement if it prompts you. You can install it from the Mac App Store.
  194 +2. Open Xcode's Preferences, the Locations tab, and make sure that the `Command Line Tools` menu option is set to something. Sometimes when the CLI tools are first installed by Homebrew this option is left blank, which can prevent Apple utilities from finding the simulator. Make sure to re-run `npm/yarn run ios` after doing so.
  195 +3. If that doesn't work, open the Simulator, and under the app menu select `Reset Contents and Settings...`. After that has finished, quit the Simulator, and re-run `npm/yarn run ios`.
  196 +
  197 +### QR Code does not scan
  198 +
  199 +If you're not able to scan the QR code, make sure your phone's camera is focusing correctly, and also make sure that the contrast on the two colors in your terminal is high enough. For example, WebStorm's default themes may [not have enough contrast](https://github.com/react-community/create-react-native-app/issues/49) for terminal QR codes to be scannable with the system barcode scanners that the Expo app uses.
  200 +
  201 +If this causes problems for you, you may want to try changing your terminal's color theme to have more contrast, or running Create React Native App from a different terminal. You can also manually enter the URL printed by the packager script in the Expo app's search bar to load it manually.
  1 + {
  2 + "expo": {
  3 + "name": "Jaikuaamina",
  4 + "icon": "./assets/logos/jaikuaamina.icon.png",
  5 + "version": "1.0.0",
  6 + "slug": "jaikuaamina",
  7 + "sdkVersion": "27.0.0",
  8 + "ios": {
  9 + "bundleIdentifier": "org.gsgo.jaikuaamina"
  10 + },
  11 + "android": {
  12 + "package": "org.gsgo.jaikuaamina",
  13 + "permissions": [
  14 + "ACCESS_FINE_LOCATION"
  15 + ]
  16 + },
  17 + "notification": {
  18 + "icon": "./assets/logos/jaikuaamina.icon.gs.png",
  19 + }
  20 + }
  21 + }
  1 +import { Platform, StyleSheet } from 'react-native'
  2 +import { STATUS_BAR_HEIGHT } from '../constants'
  3 +
  4 +export const colors = {
  5 + primary: '#D71E1E',
  6 + muted: '#6C757D',
  7 + white: '#FFFFFF',
  8 + grey: '#DDDD',
  9 + secondary: '#DDDD'
  10 +}
  11 +
  12 +export default StyleSheet.create({
  13 + activity: {
  14 + justifyContent: 'center'
  15 + },
  16 + datePicker: {
  17 + width: undefined,
  18 + borderTopColor: colors.primary
  19 + },
  20 + pane: {
  21 + flex: 1,
  22 + backgroundColor: colors.white,
  23 + paddingBottom: 20,
  24 + paddingTop: 0,
  25 + },
  26 + footer: {
  27 + height: 50,
  28 + backgroundColor: colors.primary,
  29 + justifyContent: 'space-evenly',
  30 + flexDirection: 'row',
  31 + alignItems: 'center',
  32 + },
  33 + button: {
  34 + backgroundColor: colors.primary,
  35 + margin: 10,
  36 + marginBottom: 0,
  37 + },
  38 + headerStyle: {
  39 + height: 54, //Platform.OS === 'android' ? 54 + STATUS_BAR_HEIGHT : 54,
  40 + backgroundColor: colors.primary
  41 + },
  42 + fixStatusBar: {
  43 + marginTop: Platform.OS === 'android' ? STATUS_BAR_HEIGHT : 0,
  44 + },
  45 + headerTitleStyle: {
  46 + marginTop: 0,
  47 + color: 'white'
  48 + },
  49 + label: {
  50 + padding: 10,
  51 + fontSize: 16,
  52 + backgroundColor: colors.secondary,
  53 + fontWeight: 'bold',
  54 + },
  55 + contentContainer: {
  56 + paddingVertical: 0,
  57 + alignItems: 'stretch'
  58 + },
  59 + input: {
  60 + borderColor: colors.muted,
  61 + borderWidth: 1,
  62 + margin: 5,
  63 + padding: 5
  64 + },
  65 + oneline: {
  66 + height: 35,
  67 + },
  68 + textAreaContainer: {
  69 + borderColor: colors.muted,
  70 + borderWidth: 1,
  71 + margin: 5,
  72 + padding: 5
  73 + },
  74 + textArea: {
  75 + height: 150,
  76 + justifyContent: 'flex-start',
  77 + textAlignVertical: 'top'
  78 + }
  79 +})
  1 +import { ActivityIndicator } from 'react-native'
  2 +import React, { Component } from 'react'
  3 +
  4 +import css, { colors } from '../common/styles'
  5 +
  6 +class DefaultIndicator extends Component {
  7 +
  8 + render() {
  9 + return (
  10 + <ActivityIndicator size="large" color={colors.primary} style={css.activity} />
  11 + )
  12 + }
  13 +}
  14 +
  15 +export default DefaultIndicator
  1 +import React, { Component } from 'react'
  2 +import { View, Image, Linking, TouchableOpacity } from 'react-native'
  3 +
  4 +import css from './style'
  5 +
  6 +class FooterSenatics extends Component {
  7 +
  8 + myHandlePress = (link) => () => {
  9 + console.log('pressed link')
  10 + Linking.openURL(link)
  11 + }
  12 +
  13 + render() {
  14 + return (
  15 + <View style={css.container}>
  16 + <View style={css.card} >
  17 + <TouchableOpacity onPress={this.myHandlePress('http://www.innovando.gov.py')}>
  18 + <Image style={css.img} source={require('../../assets/logos/innovando.png')} />
  19 + </TouchableOpacity>
  20 + </View>
  21 + <View style={css.card} >
  22 + <TouchableOpacity onPress={this.myHandlePress('https://www.senatics.gov.py')}>
  23 + <Image style={css.img} source={require('../../assets/logos/senatics.png')} />
  24 + </TouchableOpacity>
  25 + </View>
  26 + </View>)
  27 + }
  28 +}
  29 +export default FooterSenatics
  1 +import { StyleSheet } from 'react-native'
  2 +import { merge } from 'ramda'
  3 +
  4 +import styles, { colors } from '../../common/styles'
  5 +
  6 +export default merge(StyleSheet.create({
  7 + container: {
  8 + flexDirection: 'column',
  9 + justifyContent: 'flex-end',
  10 + backgroundColor: colors.grey,
  11 + paddingTop: 5,
  12 + paddingBottom: 10,
  13 + },
  14 + img: {
  15 + // resizeMode: 'center'
  16 + },
  17 + card: {
  18 + margin: 5,
  19 + padding: 5,
  20 + alignItems: 'center',
  21 + },
  22 + inner: {
  23 + margin: 0,
  24 + padding: 0,
  25 + alignItems: 'center',
  26 + }
  27 +}), styles)
  1 +import React, { Component } from 'react'
  2 +import { View, Image, Linking } from 'react-native'
  3 +
  4 +import css from './style'
  5 +
  6 +const imgSrc = require('../../assets/logos/jaikuaamina.png')
  7 +
  8 +class FooterSenatics extends Component {
  9 +
  10 + myHandlePress = (link) => () => {
  11 + console.log('pressed link')
  12 + Linking.openURL(link)
  13 + }
  14 + resizeMode='center'
  15 + resizeMethod='resize'
  16 + render() {
  17 + return (
  18 + <View style={css.imageContainer} >
  19 + <Image
  20 + style={css.image}
  21 + source={imgSrc}
  22 + resizeMode='center'
  23 + resizeMethod='resize'
  24 + />
  25 + </View>
  26 + )
  27 + }
  28 +}
  29 +export default FooterSenatics
  1 +import { StyleSheet } from 'react-native'
  2 +import { merge } from 'ramda'
  3 +
  4 +import styles from '../../common/styles'
  5 +
  6 +export default merge(StyleSheet.create({
  7 + imageContainer: {
  8 + alignItems: 'center',
  9 + paddingTop: 10,
  10 + paddingBottom: 10,
  11 + },
  12 + image: {
  13 + height: 100
  14 + },
  15 +}), styles)
  1 +import React from 'react'
  2 +import {
  3 + DrawerItems,
  4 + SafeAreaView,
  5 +} from 'react-navigation'
  6 +import { ScrollView, StyleSheet, View } from 'react-native'
  7 +import FooterSenatics from './FooterSenatics'
  8 +import Logo from './Logo'
  9 +
  10 +const styles = StyleSheet.create({
  11 + safeArea: {
  12 + flex: 1,
  13 + justifyContent: 'flex-start',
  14 + },
  15 + container: {
  16 + flex: 1,
  17 + },
  18 + contentContainer: {
  19 + justifyContent: 'space-between',
  20 + flexDirection: 'column',
  21 + alignItems: 'stretch'
  22 + }
  23 +})
  24 +
  25 +export default (props) => (
  26 + <View style={[styles.container, styles.contentContainer]}>
  27 + <ScrollView style={styles.container}>
  28 + <SafeAreaView style={styles.safeArea} forceInset={{ top: 'always', horizontal: 'never' }}>
  29 + <Logo />
  30 + <DrawerItems {...props} />
  31 + </SafeAreaView>
  32 + </ScrollView>
  33 + <FooterSenatics />
  34 + </View>
  35 +)
  1 +import React from 'react'
  2 +import {
  3 + View,
  4 + Text
  5 +} from 'react-native'
  6 +import { Icon } from 'react-native-elements'
  7 +import css from './style'
  8 +
  9 +
  10 +export default ({ page, totalPages, next, previous, totalCount }) => (
  11 + <View style={[css.pane, css.view]}>
  12 + <View style={css.paginationIcons}>
  13 + {
  14 + page > 1 ?
  15 + <Icon name='chevron-left' onPress={previous} /> :
  16 + <Icon />
  17 + }
  18 + <Text>{page}</Text>
  19 + {
  20 + page < totalPages ?
  21 + <Icon name='chevron-right' onPress={next} /> :
  22 + <Icon />
  23 + }
  24 + </View>
  25 + <View style={css.paginationMeta}>
  26 + <Text style={css.paginationMetaText}>
  27 + Pagina: {page} de {totalPages}.
  28 + Total de Resultados: {totalCount}
  29 + </Text>
  30 + </View>
  31 + </View>
  32 +)
  1 +import { StyleSheet } from 'react-native'
  2 +import { merge } from 'ramda'
  3 +
  4 +import styles, { colors } from '../../common/styles'
  5 +
  6 +export default merge(StyleSheet.create({
  7 + paginationIcons: {
  8 + flexDirection: 'row',
  9 + justifyContent: 'space-evenly'
  10 + },
  11 + paginationMetaText: {
  12 + color: colors.muted
  13 + },
  14 + paginationMeta: {
  15 + flexDirection: 'row',
  16 + justifyContent: 'center',
  17 + }
  18 +}), styles)
  1 +import { Constants } from 'expo'
  2 +
  3 +export const STATUS_BAR_HEIGHT = Constants.statusBarHeight
  4 +
  5 +// PROD
  6 +export const AUTH_TOKEN = '730e9175-c76c-418a-a051-7e2834ed7fd7'
  7 +export const CLIENT_SECRET = 'deb7aa26038d0f44a35cd3e1d2f60b5c0e11192ddd0f9430c0d64a1101daa11f'
  8 +export const SENATICS_URL = 'https://informacionpublica.paraguay.gov.py:443/portal-core/rest/api'
  9 +
  10 +// DEV
  11 +// export const AUTH_TOKEN = '0496164f-8de1-449c-9ce9-af0e0a6ce9fe'
  12 +// export const CLIENT_SECRET = 'a66a1a98eb7059a5c3b446183e214cc2661326c2994b811cb06dd9d3d873a9e9'
  13 +// export const SENATICS_URL = 'http://192.168.0.26:2128/api'
  14 +export const BACKEND_URL = 'http://192.168.0.26:3000/api'
  15 +export const RENEW_INTERVAL = 1 * 1000 * 60
  16 +export const TOKEN_EXPIRATION = 15 * 1000 * 60
  17 +export const NOTIFICATION_ICON = 'http://ayuda.tesis-jmgo.cnc.una.py/img/jaikuaamina.icon.png'
  18 +export const INFO_PY_URL = 'https://informacionpublica.paraguay.gov.py/portal/'
  19 +
  20 +export const ESTADOS_SOLICITUDES = {
  21 + finalizados: [
  22 + 'RECHAZADO',
  23 + 'NO_RESPONDIDO',
  24 + 'RESPONDIDO',
  25 + 'RESPONDIDO_FUERA_PLAZO',
  26 + ],
  27 + pendientes: [
  28 + 'PROCESO_JUDICIAL',
  29 + 'RECONSIDERACION_ATENDIDA',
  30 + 'INICIADO',
  31 + 'DERIVADO',
  32 + 'RECONSIDERADO',
  33 + 'EXTERNO',
  34 + 'INEXISTENTE',
  35 + 'REVOCADO',
  36 + 'EN_RECONSIDERACION',
  37 + 'RECONSIDERACION_NO_ATENDIDA',
  38 + 'DESACTUALIZADA',
  39 + 'RECONSIDERACION_ATENDIDA_FUERA_DE_PLAZO',
  40 + ]
  41 +}
  1 +export const ownPrivate = 'a0706be44cb58f162d753af0381d944d11fd1ad7d774d58f646754931736bc3b'
  2 +
  3 +export const ownPoint = {
  4 + x: 'cee10251659d40e5eb2d73a075599e6c8c76623e261b5d50ce30a64ab7a88d41',
  5 + y: 'f026e59c40aef27e3d18d58a96f537db0ff2402e50272bc5f0112bb3d04a3931'
  6 +}
  7 +
  8 +export const serverPoint = {
  9 + x: '614600d7e7888b32155822797b9b0b6a54a7b97d160c8aec5eeeab58c76e09be',
  10 + y: 'c74268cd7ca93d1cd99860f9536975d1177d10400596a02bac13c75a93007cd2',
  11 +}
  1 +export const PAISES = {
  2 + PY: 'Paraguaya',
  3 + AF: 'Afganist\u00e1n',
  4 + AL: 'Albania',
  5 + DE: 'Alemania',
  6 + AD: 'Andorra',
  7 + AO: 'Angola',
  8 + AI: 'Anguila',
  9 + AQ: 'Ant\u00e1rtida',
  10 + AG: 'Antigua y Barbuda',
  11 + SA: 'Arabia Saud\u00ed',
  12 + DZ: 'Argelia',
  13 + AR: 'Argentina',
  14 + AM: 'Armenia',
  15 + AW: 'Aruba',
  16 + AU: 'Australia',
  17 + AT: 'Austria',
  18 + AZ: 'Azerbaiy\u00e1n',
  19 + BS: 'Bahamas',
  20 + BD: 'Banglad\u00e9s',
  21 + BB: 'Barbados',
  22 + BH: 'Bar\u00e9in',
  23 + BE: 'B\u00e9lgica',
  24 + BZ: 'Belice',
  25 + BJ: 'Ben\u00edn',
  26 + BM: 'Bermudas',
  27 + BY: 'Bielorrusia',
  28 + BO: 'Bolivia',
  29 + BA: 'Bosnia y Herzegovina',
  30 + BW: 'Botsuana',
  31 + BR: 'Brasil',
  32 + BN: 'Brun\u00e9i',
  33 + BG: 'Bulgaria',
  34 + BF: 'Burkina Faso',
  35 + BI: 'Burundi',
  36 + BT: 'But\u00e1n',
  37 + CV: 'Cabo Verde',
  38 + KH: 'Camboya',
  39 + CM: 'Camer\u00fan',
  40 + CA: 'Canad\u00e1',
  41 + IC: 'Canarias',
  42 + BQ: 'Caribe neerland\u00e9s',
  43 + QA: 'Catar',
  44 + EA: 'Ceuta y Melilla',
  45 + TD: 'Chad',
  46 + CZ: 'Chequia',
  47 + CL: 'Chile',
  48 + CN: 'China',
  49 + CY: 'Chipre',
  50 + VA: 'Ciudad del Vaticano',
  51 + CO: 'Colombia',
  52 + KM: 'Comoras',
  53 + KP: 'Corea del Norte',
  54 + KR: 'Corea del Sur',
  55 + CR: 'Costa Rica',
  56 + CI: 'C\u00f4te d\u2019Ivoire',
  57 + HR: 'Croacia',
  58 + CU: 'Cuba',
  59 + CW: 'Curazao',
  60 + DG: 'Diego Garc\u00eda',
  61 + DK: 'Dinamarca',
  62 + DM: 'Dominica',
  63 + EC: 'Ecuador',
  64 + EG: 'Egipto',
  65 + SV: 'El Salvador',
  66 + AE: 'Emiratos \u00c1rabes Unidos',
  67 + ER: 'Eritrea',
  68 + SK: 'Eslovaquia',
  69 + SI: 'Eslovenia',
  70 + ES: 'Espa\u00f1a',
  71 + US: 'Estados Unidos',
  72 + EE: 'Estonia',
  73 + ET: 'Etiop\u00eda',
  74 + EZ: 'Eurozone',
  75 + PH: 'Filipinas',
  76 + FI: 'Finlandia',
  77 + FJ: 'Fiyi',
  78 + FR: 'Francia',
  79 + GA: 'Gab\u00f3n',
  80 + GM: 'Gambia',
  81 + GE: 'Georgia',
  82 + GH: 'Ghana',
  83 + GI: 'Gibraltar',
  84 + GD: 'Granada',
  85 + GR: 'Grecia',
  86 + GL: 'Groenlandia',
  87 + GP: 'Guadalupe',
  88 + GU: 'Guam',
  89 + GT: 'Guatemala',
  90 + GF: 'Guayana Francesa',
  91 + GG: 'Guernesey',
  92 + GN: 'Guinea',
  93 + GQ: 'Guinea Ecuatorial',
  94 + GW: 'Guinea-Bis\u00e1u',
  95 + GY: 'Guyana',
  96 + HT: 'Hait\u00ed',
  97 + HN: 'Honduras',
  98 + HU: 'Hungr\u00eda',
  99 + IN: 'India',
  100 + ID: 'Indonesia',
  101 + IQ: 'Irak',
  102 + IR: 'Ir\u00e1n',
  103 + IE: 'Irlanda',
  104 + AC: 'Isla de la Ascensi\u00f3n',
  105 + IM: 'Isla de Man',
  106 + CX: 'Isla de Navidad',
  107 + NF: 'Isla Norfolk',
  108 + IS: 'Islandia',
  109 + AX: 'Islas \u00c5land',
  110 + KY: 'Islas Caim\u00e1n',
  111 + CC: 'Islas Cocos',
  112 + CK: 'Islas Cook',
  113 + FO: 'Islas Feroe',
  114 + GS: 'Islas Georgia del Sur y Sandwich del Sur',
  115 + FK: 'Islas Malvinas',
  116 + MP: 'Islas Marianas del Norte',
  117 + MH: 'Islas Marshall',
  118 + UM: 'Islas menores alejadas de EE. UU.',
  119 + PN: 'Islas Pitcairn',
  120 + SB: 'Islas Salom\u00f3n',
  121 + TC: 'Islas Turcas y Caicos',
  122 + VG: 'Islas V\u00edrgenes Brit\u00e1nicas',
  123 + VI: 'Islas V\u00edrgenes de EE. UU.',
  124 + IL: 'Israel',
  125 + IT: 'Italia',
  126 + JM: 'Jamaica',
  127 + JP: 'Jap\u00f3n',
  128 + JE: 'Jersey',
  129 + JO: 'Jordania',
  130 + KZ: 'Kazajist\u00e1n',
  131 + KE: 'Kenia',
  132 + KG: 'Kirguist\u00e1n',
  133 + KI: 'Kiribati',
  134 + XK: 'Kosovo',
  135 + KW: 'Kuwait',
  136 + LA: 'Laos',
  137 + LS: 'Lesoto',
  138 + LV: 'Letonia',
  139 + LB: 'L\u00edbano',
  140 + LR: 'Liberia',
  141 + LY: 'Libia',
  142 + LI: 'Liechtenstein',
  143 + LT: 'Lituania',
  144 + LU: 'Luxemburgo',
  145 + MK: 'Macedonia',
  146 + MG: 'Madagascar',
  147 + MY: 'Malasia',
  148 + MW: 'Malaui',
  149 + MV: 'Maldivas',
  150 + ML: 'Mali',
  151 + MT: 'Malta',
  152 + MA: 'Marruecos',
  153 + MQ: 'Martinica',
  154 + MU: 'Mauricio',
  155 + MR: 'Mauritania',
  156 + YT: 'Mayotte',
  157 + MX: 'M\u00e9xico',
  158 + FM: 'Micronesia',
  159 + MD: 'Moldavia',
  160 + MC: 'M\u00f3naco',
  161 + MN: 'Mongolia',
  162 + ME: 'Montenegro',
  163 + MS: 'Montserrat',
  164 + MZ: 'Mozambique',
  165 + MM: 'Myanmar (Birmania)',
  166 + NA: 'Namibia',
  167 + NR: 'Nauru',
  168 + NP: 'Nepal',
  169 + NI: 'Nicaragua',
  170 + NE: 'N\u00edger',
  171 + NG: 'Nigeria',
  172 + NU: 'Niue',
  173 + NO: 'Noruega',
  174 + NC: 'Nueva Caledonia',
  175 + NZ: 'Nueva Zelanda',
  176 + OM: 'Om\u00e1n',
  177 + NL: 'Pa\u00edses Bajos',
  178 + PK: 'Pakist\u00e1n',
  179 + PW: 'Palaos',
  180 + PA: 'Panam\u00e1',
  181 + PG: 'Pap\u00faa Nueva Guinea',
  182 + PE: 'Per\u00fa',
  183 + PF: 'Polinesia Francesa',
  184 + PL: 'Polonia',
  185 + PT: 'Portugal',
  186 + PR: 'Puerto Rico',
  187 + HK: 'RAE de Hong Kong (China)',
  188 + MO: 'RAE de Macao (China)',
  189 + GB: 'Reino Unido',
  190 + CF: 'Rep\u00fablica Centroafricana',
  191 + CG: 'Rep\u00fablica del Congo',
  192 + CD: 'Rep\u00fablica Democr\u00e1tica del Congo',
  193 + DO: 'Rep\u00fablica Dominicana',
  194 + RE: 'Reuni\u00f3n',
  195 + RW: 'Ruanda',
  196 + RO: 'Ruman\u00eda',
  197 + RU: 'Rusia',
  198 + EH: 'S\u00e1hara Occidental',
  199 + WS: 'Samoa',
  200 + AS: 'Samoa Americana',
  201 + BL: 'San Bartolom\u00e9',
  202 + KN: 'San Crist\u00f3bal y Nieves',
  203 + SM: 'San Marino',
  204 + MF: 'San Mart\u00edn',
  205 + PM: 'San Pedro y Miquel\u00f3n',
  206 + VC: 'San Vicente y las Granadinas',
  207 + SH: 'Santa Elena',
  208 + LC: 'Santa Luc\u00eda',
  209 + ST: 'Santo Tom\u00e9 y Pr\u00edncipe',
  210 + SN: 'Senegal',
  211 + RS: 'Serbia',
  212 + SC: 'Seychelles',
  213 + SL: 'Sierra Leona',
  214 + SG: 'Singapur',
  215 + SX: 'Sint Maarten',
  216 + SY: 'Siria',
  217 + SO: 'Somalia',
  218 + LK: 'Sri Lanka',
  219 + SZ: 'Suazilandia',
  220 + ZA: 'Sud\u00e1frica',
  221 + SD: 'Sud\u00e1n',
  222 + SS: 'Sud\u00e1n del Sur',
  223 + SE: 'Suecia',
  224 + CH: 'Suiza',
  225 + SR: 'Surinam',
  226 + SJ: 'Svalbard y Jan Mayen',
  227 + TH: 'Tailandia',
  228 + TW: 'Taiw\u00e1n',
  229 + TZ: 'Tanzania',
  230 + TJ: 'Tayikist\u00e1n',
  231 + IO: 'Territorio Brit\u00e1nico del Oc\u00e9ano \u00cdndico',
  232 + TF: 'Territorios Australes Franceses',
  233 + PS: 'Territorios Palestinos',
  234 + TL: 'Timor-Leste',
  235 + TG: 'Togo',
  236 + TK: 'Tokelau',
  237 + TO: 'Tonga',
  238 + TT: 'Trinidad y Tobago',
  239 + TA: 'Trist\u00e1n de Acu\u00f1a',
  240 + TN: 'T\u00fanez',
  241 + TM: 'Turkmenist\u00e1n',
  242 + TR: 'Turqu\u00eda',
  243 + TV: 'Tuvalu',
  244 + UA: 'Ucrania',
  245 + UG: 'Uganda',
  246 + UN: 'United Nations',
  247 + UY: 'Uruguay',
  248 + UZ: 'Uzbekist\u00e1n',
  249 + VU: 'Vanuatu',
  250 + VE: 'Venezuela',
  251 + VN: 'Vietnam',
  252 + WF: 'Wallis y Futuna',
  253 + YE: 'Yemen',
  254 + DJ: 'Yibuti',
  255 + ZM: 'Zambia',
  256 + ZW: 'Zimbabue'
  257 +}
  1 +export const SEXOS = ['Masculino', 'Femenino']
  1 +{
  2 + "1": {
  3 + "id": 1,
  4 + "nombre": "Asunción"
  5 + },
  6 + "2": {
  7 + "id": 2,
  8 + "nombre": "Alto Paraguay"
  9 + },
  10 + "3": {
  11 + "id": 3,
  12 + "nombre": "Alto Paraná"
  13 + },
  14 + "4": {
  15 + "id": 4,
  16 + "nombre": "Amambay"
  17 + },
  18 + "5": {
  19 + "id": 5,
  20 + "nombre": "Boquerón"
  21 + },
  22 + "6": {
  23 + "id": 6,
  24 + "nombre": "Caaguazú"
  25 + },
  26 + "7": {
  27 + "id": 7,
  28 + "nombre": "Caazapa"
  29 + },
  30 + "8": {
  31 + "id": 8,
  32 + "nombre": "Canindeyu"
  33 + },
  34 + "9": {
  35 + "id": 9,
  36 + "nombre": "Central"
  37 + },
  38 + "10": {
  39 + "id": 10,
  40 + "nombre": "Concepción"
  41 + },
  42 + "11": {
  43 + "id": 11,
  44 + "nombre": "Cordillera"
  45 + },
  46 + "12": {
  47 + "id": 12,
  48 + "nombre": "Guaira"
  49 + },
  50 + "13": {
  51 + "id": 13,
  52 + "nombre": "Itapua"
  53 + },
  54 + "14": {
  55 + "id": 14,
  56 + "nombre": "Misiones"
  57 + },
  58 + "15": {
  59 + "id": 15,
  60 + "nombre": "Ñeembucu"
  61 + },
  62 + "16": {
  63 + "id": 16,
  64 + "nombre": "Paraguari"
  65 + },
  66 + "17": {
  67 + "id": 17,
  68 + "nombre": "Presidente Hayes"
  69 + },
  70 + "18": {
  71 + "id": 18,
  72 + "nombre": "San Pedro"
  73 + },
  74 + "19": {
  75 + "id": 19,
  76 + "nombre": "Desde el Exterior"
  77 + }
  78 +}
  1 +{
  2 + "1": {
  3 + "id": 1,
  4 + "nombre": "Asunción",
  5 + "departamento": 1
  6 + },
  7 + "2": {
  8 + "id": 2,
  9 + "nombre": "Fuerte Olimpo",
  10 + "departamento": 2
  11 + },
  12 + "3": {
  13 + "id": 3,
  14 + "nombre": "Bahia Negra",
  15 + "departamento": 2
  16 + },
  17 + "4": {
  18 + "id": 4,
  19 + "nombre": "Carmelo Peralta",
  20 + "departamento": 2
  21 + },
  22 + "5": {
  23 + "id": 5,
  24 + "nombre": "Puerto Casado",
  25 + "departamento": 2
  26 + },
  27 + "10": {
  28 + "id": 10,
  29 + "nombre": "Dr. Juan Leon Mallorquin",
  30 + "departamento": 3
  31 + },
  32 + "11": {
  33 + "id": 11,
  34 + "nombre": "Dr. Raul Peña",
  35 + "departamento": 3
  36 + },
  37 + "19": {
  38 + "id": 19,
  39 + "nombre": "Minga Pora",
  40 + "departamento": 3
  41 + },
  42 + "20": {
  43 + "id": 20,
  44 + "nombre": "Naranjal",
  45 + "departamento": 3
  46 + },
  47 + "21": {
  48 + "id": 21,
  49 + "nombre": "Presidente Franco",
  50 + "departamento": 3
  51 + },
  52 + "22": {
  53 + "id": 22,
  54 + "nombre": "San Alberto",
  55 + "departamento": 3
  56 + },
  57 + "26": {
  58 + "id": 26,
  59 + "nombre": "Santa Rosa Del Monday",
  60 + "departamento": 3
  61 + },
  62 + "27": {
  63 + "id": 27,
  64 + "nombre": "Tavapy",
  65 + "departamento": 3
  66 + },
  67 + "29": {
  68 + "id": 29,
  69 + "nombre": "Capitan Bado",
  70 + "departamento": 4
  71 + },
  72 + "30": {
  73 + "id": 30,
  74 + "nombre": "Pedro Juan Caballero",
  75 + "departamento": 4
  76 + },
  77 + "31": {
  78 + "id": 31,
  79 + "nombre": "Zanja Pyta",
  80 + "departamento": 4
  81 + },
  82 + "33": {
  83 + "id": 33,
  84 + "nombre": "Filadelfia",
  85 + "departamento": 5
  86 + },
  87 + "34": {
  88 + "id": 34,
  89 + "nombre": "Fernhein",
  90 + "departamento": 5
  91 + },
  92 + "41": {
  93 + "id": 41,
  94 + "nombre": "Caaguazu",
  95 + "departamento": 6
  96 + },
  97 + "43": {
  98 + "id": 43,
  99 + "nombre": "Cecilio Baez",
  100 + "departamento": 6
  101 + },
  102 + "45": {
  103 + "id": 45,
  104 + "nombre": "Dr. J. Eulogio Estigarribia",
  105 + "departamento": 6
  106 + },
  107 + "46": {
  108 + "id": 46,
  109 + "nombre": "Dr. Juan Manuel Frutos",
  110 + "departamento": 6
  111 + },
  112 + "47": {
  113 + "id": 47,
  114 + "nombre": "Jose Domingo Ocampos",
  115 + "departamento": 6
  116 + },
  117 + "51": {
  118 + "id": 51,
  119 + "nombre": "Nueva Toledo",
  120 + "departamento": 6
  121 + },
  122 + "52": {
  123 + "id": 52,
  124 + "nombre": "Raul Arsenio Oviedo",
  125 + "departamento": 6
  126 + },
  127 + "53": {
  128 + "id": 53,
  129 + "nombre": "Repatriacion",
  130 + "departamento": 6
  131 + },
  132 + "55": {
  133 + "id": 55,
  134 + "nombre": "San Joaquin",
  135 + "departamento": 6
  136 + },
  137 + "57": {
  138 + "id": 57,
  139 + "nombre": "Santa Rosa Del Mbutuy",
  140 + "departamento": 6
  141 + },
  142 + "61": {
  143 + "id": 61,
  144 + "nombre": "Yhu",
  145 + "departamento": 6
  146 + },
  147 + "62": {
  148 + "id": 62,
  149 + "nombre": "3 De Mayo",
  150 + "departamento": 7
  151 + },
  152 + "63": {
  153 + "id": 63,
  154 + "nombre": "Abai",
  155 + "departamento": 7
  156 + },
  157 + "68": {
  158 + "id": 68,
  159 + "nombre": "General Higinio Morinigo",
  160 + "departamento": 7
  161 + },
  162 + "69": {
  163 + "id": 69,
  164 + "nombre": "Maciel",
  165 + "departamento": 7
  166 + },
  167 + "70": {
  168 + "id": 70,
  169 + "nombre": "San Juan Nepomuceno",
  170 + "departamento": 7
  171 + },
  172 + "71": {
  173 + "id": 71,
  174 + "nombre": "Tavai",
  175 + "departamento": 7
  176 + },
  177 + "73": {
  178 + "id": 73,
  179 + "nombre": "Corpus Christi",
  180 + "departamento": 8
  181 + },
  182 + "76": {
  183 + "id": 76,
  184 + "nombre": "Itanara",
  185 + "departamento": 8
  186 + },
  187 + "77": {
  188 + "id": 77,
  189 + "nombre": "La Paloma",
  190 + "departamento": 8
  191 + },
  192 + "78": {
  193 + "id": 78,
  194 + "nombre": "Katuete",
  195 + "departamento": 8
  196 + },
  197 + "80": {
  198 + "id": 80,
  199 + "nombre": "Saltos Del Guaira",
  200 + "departamento": 8
  201 + },
  202 + "82": {
  203 + "id": 82,
  204 + "nombre": "Yasy Kañy",
  205 + "departamento": 8
  206 + },
  207 + "83": {
  208 + "id": 83,
  209 + "nombre": "Yby Pyta",
  210 + "departamento": 8
  211 + },
  212 + "84": {
  213 + "id": 84,
  214 + "nombre": "Ybyrarobana",
  215 + "departamento": 8
  216 + },
  217 + "86": {
  218 + "id": 86,
  219 + "nombre": "Aregua",
  220 + "departamento": 9
  221 + },
  222 + "88": {
  223 + "id": 88,
  224 + "nombre": "Ñemby",
  225 + "departamento": 9
  226 + },
  227 + "89": {
  228 + "id": 89,
  229 + "nombre": "Fernando De La Mora",
  230 + "departamento": 9
  231 + },
  232 + "93": {
  233 + "id": 93,
  234 + "nombre": "J Augusto Saldivar",
  235 + "departamento": 9
  236 + },
  237 + "97": {
  238 + "id": 97,
  239 + "nombre": "Mariano Roque Alonso",
  240 + "departamento": 9
  241 + },
  242 + "99": {
  243 + "id": 99,
  244 + "nombre": "Nueva Italia",
  245 + "departamento": 9
  246 + },
  247 + "100": {
  248 + "id": 100,
  249 + "nombre": "San Lorenzo",
  250 + "departamento": 9
  251 + },
  252 + "101": {
  253 + "id": 101,
  254 + "nombre": "Villa Elisa",
  255 + "departamento": 9
  256 + },
  257 + "102": {
  258 + "id": 102,
  259 + "nombre": "Villeta",
  260 + "departamento": 9
  261 + },
  262 + "103": {
  263 + "id": 103,
  264 + "nombre": "Ypacarai",
  265 + "departamento": 9
  266 + },
  267 + "105": {
  268 + "id": 105,
  269 + "nombre": "Azotey",
  270 + "departamento": 10
  271 + },
  272 + "107": {
  273 + "id": 107,
  274 + "nombre": "Concepcion",
  275 + "departamento": 10
  276 + },
  277 + "108": {
  278 + "id": 108,
  279 + "nombre": "Horqueta",
  280 + "departamento": 10
  281 + },
  282 + "109": {
  283 + "id": 109,
  284 + "nombre": "Loreto",
  285 + "departamento": 10
  286 + },
  287 + "110": {
  288 + "id": 110,
  289 + "nombre": "San Alfredo",
  290 + "departamento": 10
  291 + },
  292 + "114": {
  293 + "id": 114,
  294 + "nombre": "Sgto. Jose Felix Lopez",
  295 + "departamento": 10
  296 + },
  297 + "116": {
  298 + "id": 116,
  299 + "nombre": "Vallemi",
  300 + "departamento": 10
  301 + },
  302 + "120": {
  303 + "id": 120,
  304 + "nombre": "Caacupe",
  305 + "departamento": 11
  306 + },
  307 + "121": {
  308 + "id": 121,
  309 + "nombre": "Caraguatay",
  310 + "departamento": 11
  311 + },
  312 + "124": {
  313 + "id": 124,
  314 + "nombre": "Isla Pucu",
  315 + "departamento": 11
  316 + },
  317 + "125": {
  318 + "id": 125,
  319 + "nombre": "Itacurubi De La Cordillera",
  320 + "departamento": 11
  321 + },
  322 + "127": {
  323 + "id": 127,
  324 + "nombre": "Mbocayaty Del Yhaguy",
  325 + "departamento": 11
  326 + },
  327 + "128": {
  328 + "id": 128,
  329 + "nombre": "Loma Grande",
  330 + "departamento": 11
  331 + },
  332 + "131": {
  333 + "id": 131,
  334 + "nombre": "Primero De Marzo",
  335 + "departamento": 11
  336 + },
  337 + "133": {
  338 + "id": 133,
  339 + "nombre": "San Bernardino",
  340 + "departamento": 11
  341 + },
  342 + "135": {
  343 + "id": 135,
  344 + "nombre": "Santa Elena",
  345 + "departamento": 11
  346 + },
  347 + "137": {
  348 + "id": 137,
  349 + "nombre": "Borja",
  350 + "departamento": 12
  351 + },
  352 + "138": {
  353 + "id": 138,
  354 + "nombre": "Colonia Independencia",
  355 + "departamento": 12
  356 + },
  357 + "139": {
  358 + "id": 139,
  359 + "nombre": "Coronel Martinez",
  360 + "departamento": 12
  361 + },
  362 + "140": {
  363 + "id": 140,
  364 + "nombre": "Ñumi",
  365 + "departamento": 12
  366 + },
  367 + "143": {
  368 + "id": 143,
  369 + "nombre": "General Eugenio A. Garay",
  370 + "departamento": 12
  371 + },
  372 + "146": {
  373 + "id": 146,
  374 + "nombre": "Jose Fassardi",
  375 + "departamento": 12
  376 + },
  377 + "148": {
  378 + "id": 148,
  379 + "nombre": "Mbocayaty",
  380 + "departamento": 12
  381 + },
  382 + "149": {
  383 + "id": 149,
  384 + "nombre": "Natalicio Talavera",
  385 + "departamento": 12
  386 + },
  387 + "152": {
  388 + "id": 152,
  389 + "nombre": "Villarrica",
  390 + "departamento": 12
  391 + },
  392 + "153": {
  393 + "id": 153,
  394 + "nombre": "Tebicuary",
  395 + "departamento": 12
  396 + },
  397 + "154": {
  398 + "id": 154,
  399 + "nombre": "Yataity",
  400 + "departamento": 12
  401 + },
  402 + "155": {
  403 + "id": 155,
  404 + "nombre": "Alto Vera",
  405 + "departamento": 13
  406 + },
  407 + "156": {
  408 + "id": 156,
  409 + "nombre": "Bella Vista",
  410 + "departamento": 13
  411 + },
  412 + "157": {
  413 + "id": 157,
  414 + "nombre": "Cambyreta",
  415 + "departamento": 13
  416 + },
  417 + "158": {
  418 + "id": 158,
  419 + "nombre": "Capitan Meza",
  420 + "departamento": 13
  421 + },
  422 + "159": {
  423 + "id": 159,
  424 + "nombre": "Capitan Miranda",
  425 + "departamento": 13
  426 + },
  427 + "161": {
  428 + "id": 161,
  429 + "nombre": "Coronel Bogado",
  430 + "departamento": 13
  431 + },
  432 + "162": {
  433 + "id": 162,
  434 + "nombre": "Carmen Del Parana",
  435 + "departamento": 13
  436 + },
  437 + "164": {
  438 + "id": 164,
  439 + "nombre": "Encarnacion",
  440 + "departamento": 13
  441 + },
  442 + "165": {
  443 + "id": 165,
  444 + "nombre": "Fram",
  445 + "departamento": 13
  446 + },
  447 + "166": {
  448 + "id": 166,
  449 + "nombre": "General Artigas",
  450 + "departamento": 13
  451 + },
  452 + "170": {
  453 + "id": 170,
  454 + "nombre": "Jesus",
  455 + "departamento": 13
  456 + },
  457 + "171": {
  458 + "id": 171,
  459 + "nombre": "Leandro Oviedo",
  460 + "departamento": 13
  461 + },
  462 + "174": {
  463 + "id": 174,
  464 + "nombre": "Natalio",
  465 + "departamento": 13
  466 + },
  467 + "181": {
  468 + "id": 181,
  469 + "nombre": "San Rafael Del Parana",
  470 + "departamento": 13
  471 + },
  472 + "183": {
  473 + "id": 183,
  474 + "nombre": "Trinidad",
  475 + "departamento": 13
  476 + },
  477 + "184": {
  478 + "id": 184,
  479 + "nombre": "Yatytay",
  480 + "departamento": 13
  481 + },
  482 + "185": {
  483 + "id": 185,
  484 + "nombre": "Ayolas",
  485 + "departamento": 14
  486 + },
  487 + "186": {
  488 + "id": 186,
  489 + "nombre": "San Ignacio",
  490 + "departamento": 14
  491 + },
  492 + "188": {
  493 + "id": 188,
  494 + "nombre": "San Miguel",
  495 + "departamento": 14
  496 + },
  497 + "189": {
  498 + "id": 189,
  499 + "nombre": "San Patricio",
  500 + "departamento": 14
  501 + },
  502 + "191": {
  503 + "id": 191,
  504 + "nombre": "Santa Rosa",
  505 + "departamento": 14
  506 + },
  507 + "197": {
  508 + "id": 197,
  509 + "nombre": "Desmochados",
  510 + "departamento": 15
  511 + },
  512 + "201": {
  513 + "id": 201,
  514 + "nombre": "Isla Umbu",
  515 + "departamento": 15
  516 + },
  517 + "203": {
  518 + "id": 203,
  519 + "nombre": "Pilar",
  520 + "departamento": 15
  521 + },
  522 + "205": {
  523 + "id": 205,
  524 + "nombre": "Paso De Patria",
  525 + "departamento": 15
  526 + },
  527 + "206": {
  528 + "id": 206,
  529 + "nombre": "Tacuaras",
  530 + "departamento": 15
  531 + },
  532 + "207": {
  533 + "id": 207,
  534 + "nombre": "San Juan Bautista De Ñeembucu",
  535 + "departamento": 15
  536 + },
  537 + "211": {
  538 + "id": 211,
  539 + "nombre": "Acahay",
  540 + "departamento": 16
  541 + },
  542 + "212": {
  543 + "id": 212,
  544 + "nombre": "Caapucu",
  545 + "departamento": 16
  546 + },
  547 + "214": {
  548 + "id": 214,
  549 + "nombre": "Escobar",
  550 + "departamento": 16
  551 + },
  552 + "215": {
  553 + "id": 215,
  554 + "nombre": "General Bernardino Caballero",
  555 + "departamento": 16
  556 + },
  557 + "218": {
  558 + "id": 218,
  559 + "nombre": "Paraguari",
  560 + "departamento": 16
  561 + },
  562 + "220": {
  563 + "id": 220,
  564 + "nombre": "Pirayu",
  565 + "departamento": 16
  566 + },
  567 + "221": {
  568 + "id": 221,
  569 + "nombre": "Quyquyho",
  570 + "departamento": 16
  571 + },
  572 + "223": {
  573 + "id": 223,
  574 + "nombre": "Sapucai",
  575 + "departamento": 16
  576 + },
  577 + "226": {
  578 + "id": 226,
  579 + "nombre": "Ybycui",
  580 + "departamento": 16
  581 + },
  582 + "230": {
  583 + "id": 230,
  584 + "nombre": "Jose Falcon",
  585 + "departamento": 17
  586 + },
  587 + "231": {
  588 + "id": 231,
  589 + "nombre": "Pozo Colorado",
  590 + "departamento": 17
  591 + },
  592 + "232": {
  593 + "id": 232,
  594 + "nombre": "Puerto Pinasco",
  595 + "departamento": 17
  596 + },
  597 + "233": {
  598 + "id": 233,
  599 + "nombre": "Nanawa",
  600 + "departamento": 17
  601 + },
  602 + "234": {
  603 + "id": 234,
  604 + "nombre": "Tte 1ro Manuel Irala Fernandez",
  605 + "departamento": 17
  606 + },
  607 + "235": {
  608 + "id": 235,
  609 + "nombre": "Villa Hayes",
  610 + "departamento": 17
  611 + },
  612 + "236": {
  613 + "id": 236,
  614 + "nombre": "Tte. Esteban Martinez",
  615 + "departamento": 17
  616 + },
  617 + "237": {
  618 + "id": 237,
  619 + "nombre": "25 De Diciembre",
  620 + "departamento": 18
  621 + },
  622 + "239": {
  623 + "id": 239,
  624 + "nombre": "Capiibary",
  625 + "departamento": 18
  626 + },
  627 + "243": {
  628 + "id": 243,
  629 + "nombre": "Guajayvi",
  630 + "departamento": 18
  631 + },
  632 + "244": {
  633 + "id": 244,
  634 + "nombre": "Itacurubi Del Rosario",
  635 + "departamento": 18
  636 + },
  637 + "245": {
  638 + "id": 245,
  639 + "nombre": "Liberacion",
  640 + "departamento": 18
  641 + },
  642 + "246": {
  643 + "id": 246,
  644 + "nombre": "Lima",
  645 + "departamento": 18
  646 + },
  647 + "250": {
  648 + "id": 250,
  649 + "nombre": "San Pedro Del Ykuamandiyu",
  650 + "departamento": 18
  651 + },
  652 + "251": {
  653 + "id": 251,
  654 + "nombre": "Santa Rosa Del Aguaray",
  655 + "departamento": 18
  656 + },
  657 + "252": {
  658 + "id": 252,
  659 + "nombre": "Tacuati",
  660 + "departamento": 18
  661 + },
  662 + "253": {
  663 + "id": 253,
  664 + "nombre": "Villa Del Rosario",
  665 + "departamento": 18
  666 + },
  667 + "254": {
  668 + "id": 254,
  669 + "nombre": "Union",
  670 + "departamento": 18
  671 + },
  672 + "255": {
  673 + "id": 255,
  674 + "nombre": "Yataity Del Norte",
  675 + "departamento": 18
  676 + },
  677 + "256": {
  678 + "id": 256,
  679 + "nombre": "Yryvu Cua",
  680 + "departamento": 18
  681 + },
  682 + "257": {
  683 + "id": 257,
  684 + "nombre": "Desde el Exterior",
  685 + "departamento": 19
  686 + },
  687 + "258": {
  688 + "id": 258,
  689 + "nombre": "María Antonia",
  690 + "departamento": 16
  691 + },
  692 + "259": {
  693 + "id": 259,
  694 + "nombre": "3 de Febrero",
  695 + "departamento": 6
  696 + },
  697 + "261": {
  698 + "id": 261,
  699 + "nombre": "Maracana",
  700 + "departamento": 8
  701 + }
  702 +}
  1 +{
  2 + "1": [
  3 + {
  4 + "id": 1,
  5 + "nombre": "Asunción",
  6 + "departamento": 1
  7 + }
  8 + ],
  9 + "2": [
  10 + {
  11 + "id": 3,
  12 + "nombre": "Bahia Negra",
  13 + "departamento": 2
  14 + },
  15 + {
  16 + "id": 5,
  17 + "nombre": "Puerto Casado",
  18 + "departamento": 2
  19 + },
  20 + {
  21 + "id": 2,
  22 + "nombre": "Fuerte Olimpo",
  23 + "departamento": 2
  24 + },
  25 + {
  26 + "id": 4,
  27 + "nombre": "Carmelo Peralta",
  28 + "departamento": 2
  29 + }
  30 + ],
  31 + "3": [
  32 + {
  33 + "id": 22,
  34 + "nombre": "San Alberto",
  35 + "departamento": 3
  36 + },
  37 + {
  38 + "id": 19,
  39 + "nombre": "Minga Pora",
  40 + "departamento": 3
  41 + },
  42 + {
  43 + "id": 11,
  44 + "nombre": "Dr. Raul Peña",
  45 + "departamento": 3
  46 + },
  47 + {
  48 + "id": 20,
  49 + "nombre": "Naranjal",
  50 + "departamento": 3
  51 + },
  52 + {
  53 + "id": 10,
  54 + "nombre": "Dr. Juan Leon Mallorquin",
  55 + "departamento": 3
  56 + },
  57 + {
  58 + "id": 21,
  59 + "nombre": "Presidente Franco",
  60 + "departamento": 3
  61 + },
  62 + {
  63 + "id": 26,
  64 + "nombre": "Santa Rosa Del Monday",
  65 + "departamento": 3
  66 + },
  67 + {
  68 + "id": 27,
  69 + "nombre": "Tavapy",
  70 + "departamento": 3
  71 + }
  72 + ],
  73 + "4": [
  74 + {
  75 + "id": 30,
  76 + "nombre": "Pedro Juan Caballero",
  77 + "departamento": 4
  78 + },
  79 + {
  80 + "id": 31,
  81 + "nombre": "Zanja Pyta",
  82 + "departamento": 4
  83 + },
  84 + {
  85 + "id": 29,
  86 + "nombre": "Capitan Bado",
  87 + "departamento": 4
  88 + }
  89 + ],
  90 + "5": [
  91 + {
  92 + "id": 34,
  93 + "nombre": "Fernhein",
  94 + "departamento": 5
  95 + },
  96 + {
  97 + "id": 33,
  98 + "nombre": "Filadelfia",
  99 + "departamento": 5
  100 + }
  101 + ],
  102 + "6": [
  103 + {
  104 + "id": 55,
  105 + "nombre": "San Joaquin",
  106 + "departamento": 6
  107 + },
  108 + {
  109 + "id": 52,
  110 + "nombre": "Raul Arsenio Oviedo",
  111 + "departamento": 6
  112 + },
  113 + {
  114 + "id": 45,
  115 + "nombre": "Dr. J. Eulogio Estigarribia",
  116 + "departamento": 6
  117 + },
  118 + {
  119 + "id": 41,
  120 + "nombre": "Caaguazu",
  121 + "departamento": 6
  122 + },
  123 + {
  124 + "id": 47,
  125 + "nombre": "Jose Domingo Ocampos",
  126 + "departamento": 6
  127 + },
  128 + {
  129 + "id": 43,
  130 + "nombre": "Cecilio Baez",
  131 + "departamento": 6
  132 + },
  133 + {
  134 + "id": 61,
  135 + "nombre": "Yhu",
  136 + "departamento": 6
  137 + },
  138 + {
  139 + "id": 46,
  140 + "nombre": "Dr. Juan Manuel Frutos",
  141 + "departamento": 6
  142 + },
  143 + {
  144 + "id": 57,
  145 + "nombre": "Santa Rosa Del Mbutuy",
  146 + "departamento": 6
  147 + },
  148 + {
  149 + "id": 51,
  150 + "nombre": "Nueva Toledo",
  151 + "departamento": 6
  152 + },
  153 + {
  154 + "id": 259,
  155 + "nombre": "3 de Febrero",
  156 + "departamento": 6
  157 + },
  158 + {
  159 + "id": 53,
  160 + "nombre": "Repatriacion",
  161 + "departamento": 6
  162 + }
  163 + ],
  164 + "7": [
  165 + {
  166 + "id": 70,
  167 + "nombre": "San Juan Nepomuceno",
  168 + "departamento": 7
  169 + },
  170 + {
  171 + "id": 62,
  172 + "nombre": "3 De Mayo",
  173 + "departamento": 7
  174 + },
  175 + {
  176 + "id": 63,
  177 + "nombre": "Abai",
  178 + "departamento": 7
  179 + },
  180 + {
  181 + "id": 71,
  182 + "nombre": "Tavai",
  183 + "departamento": 7
  184 + },
  185 + {
  186 + "id": 68,
  187 + "nombre": "General Higinio Morinigo",
  188 + "departamento": 7
  189 + },
  190 + {
  191 + "id": 69,
  192 + "nombre": "Maciel",
  193 + "departamento": 7
  194 + }
  195 + ],
  196 + "8": [
  197 + {
  198 + "id": 78,
  199 + "nombre": "Katuete",
  200 + "departamento": 8
  201 + },
  202 + {
  203 + "id": 77,
  204 + "nombre": "La Paloma",
  205 + "departamento": 8
  206 + },
  207 + {
  208 + "id": 80,
  209 + "nombre": "Saltos Del Guaira",
  210 + "departamento": 8
  211 + },
  212 + {
  213 + "id": 73,
  214 + "nombre": "Corpus Christi",
  215 + "departamento": 8
  216 + },
  217 + {
  218 + "id": 84,
  219 + "nombre": "Ybyrarobana",
  220 + "departamento": 8
  221 + },
  222 + {
  223 + "id": 83,
  224 + "nombre": "Yby Pyta",
  225 + "departamento": 8
  226 + },
  227 + {
  228 + "id": 76,
  229 + "nombre": "Itanara",
  230 + "departamento": 8
  231 + },
  232 + {
  233 + "id": 261,
  234 + "nombre": "Maracana",
  235 + "departamento": 8
  236 + },
  237 + {
  238 + "id": 82,
  239 + "nombre": "Yasy Kañy",
  240 + "departamento": 8
  241 + }
  242 + ],
  243 + "9": [
  244 + {
  245 + "id": 97,
  246 + "nombre": "Mariano Roque Alonso",
  247 + "departamento": 9
  248 + },
  249 + {
  250 + "id": 93,
  251 + "nombre": "J Augusto Saldivar",
  252 + "departamento": 9
  253 + },
  254 + {
  255 + "id": 101,
  256 + "nombre": "Villa Elisa",
  257 + "departamento": 9
  258 + },
  259 + {
  260 + "id": 102,
  261 + "nombre": "Villeta",
  262 + "departamento": 9
  263 + },
  264 + {
  265 + "id": 103,
  266 + "nombre": "Ypacarai",
  267 + "departamento": 9
  268 + },
  269 + {
  270 + "id": 100,
  271 + "nombre": "San Lorenzo",
  272 + "departamento": 9
  273 + },
  274 + {
  275 + "id": 89,
  276 + "nombre": "Fernando De La Mora",
  277 + "departamento": 9
  278 + },
  279 + {
  280 + "id": 88,
  281 + "nombre": "Ñemby",
  282 + "departamento": 9
  283 + },
  284 + {
  285 + "id": 99,
  286 + "nombre": "Nueva Italia",
  287 + "departamento": 9
  288 + },
  289 + {
  290 + "id": 86,
  291 + "nombre": "Aregua",
  292 + "departamento": 9
  293 + }
  294 + ],
  295 + "10": [
  296 + {
  297 + "id": 110,
  298 + "nombre": "San Alfredo",
  299 + "departamento": 10
  300 + },
  301 + {
  302 + "id": 114,
  303 + "nombre": "Sgto. Jose Felix Lopez",
  304 + "departamento": 10
  305 + },
  306 + {
  307 + "id": 107,
  308 + "nombre": "Concepcion",
  309 + "departamento": 10
  310 + },
  311 + {
  312 + "id": 105,
  313 + "nombre": "Azotey",
  314 + "departamento": 10
  315 + },
  316 + {
  317 + "id": 109,
  318 + "nombre": "Loreto",
  319 + "departamento": 10
  320 + },
  321 + {
  322 + "id": 108,
  323 + "nombre": "Horqueta",
  324 + "departamento": 10
  325 + },
  326 + {
  327 + "id": 116,
  328 + "nombre": "Vallemi",
  329 + "departamento": 10
  330 + }
  331 + ],
  332 + "11": [
  333 + {
  334 + "id": 127,
  335 + "nombre": "Mbocayaty Del Yhaguy",
  336 + "departamento": 11
  337 + },
  338 + {
  339 + "id": 133,
  340 + "nombre": "San Bernardino",
  341 + "departamento": 11
  342 + },
  343 + {
  344 + "id": 135,
  345 + "nombre": "Santa Elena",
  346 + "departamento": 11
  347 + },
  348 + {
  349 + "id": 120,
  350 + "nombre": "Caacupe",
  351 + "departamento": 11
  352 + },
  353 + {
  354 + "id": 128,
  355 + "nombre": "Loma Grande",
  356 + "departamento": 11
  357 + },
  358 + {
  359 + "id": 124,
  360 + "nombre": "Isla Pucu",
  361 + "departamento": 11
  362 + },
  363 + {
  364 + "id": 121,
  365 + "nombre": "Caraguatay",
  366 + "departamento": 11
  367 + },
  368 + {
  369 + "id": 131,
  370 + "nombre": "Primero De Marzo",
  371 + "departamento": 11
  372 + },
  373 + {
  374 + "id": 125,
  375 + "nombre": "Itacurubi De La Cordillera",
  376 + "departamento": 11
  377 + }
  378 + ],
  379 + "12": [
  380 + {
  381 + "id": 154,
  382 + "nombre": "Yataity",
  383 + "departamento": 12
  384 + },
  385 + {
  386 + "id": 148,
  387 + "nombre": "Mbocayaty",
  388 + "departamento": 12
  389 + },
  390 + {
  391 + "id": 139,
  392 + "nombre": "Coronel Martinez",
  393 + "departamento": 12
  394 + },
  395 + {
  396 + "id": 153,
  397 + "nombre": "Tebicuary",
  398 + "departamento": 12
  399 + },
  400 + {
  401 + "id": 152,
  402 + "nombre": "Villarrica",
  403 + "departamento": 12
  404 + },
  405 + {
  406 + "id": 143,
  407 + "nombre": "General Eugenio A. Garay",
  408 + "departamento": 12
  409 + },
  410 + {
  411 + "id": 149,
  412 + "nombre": "Natalicio Talavera",
  413 + "departamento": 12
  414 + },
  415 + {
  416 + "id": 146,
  417 + "nombre": "Jose Fassardi",
  418 + "departamento": 12
  419 + },
  420 + {
  421 + "id": 137,
  422 + "nombre": "Borja",
  423 + "departamento": 12
  424 + },
  425 + {
  426 + "id": 138,
  427 + "nombre": "Colonia Independencia",
  428 + "departamento": 12
  429 + },
  430 + {
  431 + "id": 140,
  432 + "nombre": "Ñumi",
  433 + "departamento": 12
  434 + }
  435 + ],
  436 + "13": [
  437 + {
  438 + "id": 181,
  439 + "nombre": "San Rafael Del Parana",
  440 + "departamento": 13
  441 + },
  442 + {
  443 + "id": 174,
  444 + "nombre": "Natalio",
  445 + "departamento": 13
  446 + },
  447 + {
  448 + "id": 164,
  449 + "nombre": "Encarnacion",
  450 + "departamento": 13
  451 + },
  452 + {
  453 + "id": 159,
  454 + "nombre": "Capitan Miranda",
  455 + "departamento": 13
  456 + },
  457 + {
  458 + "id": 165,
  459 + "nombre": "Fram",
  460 + "departamento": 13
  461 + },
  462 + {
  463 + "id": 171,
  464 + "nombre": "Leandro Oviedo",
  465 + "departamento": 13
  466 + },
  467 + {
  468 + "id": 166,
  469 + "nombre": "General Artigas",
  470 + "departamento": 13
  471 + },
  472 + {
  473 + "id": 183,
  474 + "nombre": "Trinidad",
  475 + "departamento": 13
  476 + },
  477 + {
  478 + "id": 161,
  479 + "nombre": "Coronel Bogado",
  480 + "departamento": 13
  481 + },
  482 + {
  483 + "id": 158,
  484 + "nombre": "Capitan Meza",
  485 + "departamento": 13
  486 + },
  487 + {
  488 + "id": 162,
  489 + "nombre": "Carmen Del Parana",
  490 + "departamento": 13
  491 + },
  492 + {
  493 + "id": 156,
  494 + "nombre": "Bella Vista",
  495 + "departamento": 13
  496 + },
  497 + {
  498 + "id": 157,
  499 + "nombre": "Cambyreta",
  500 + "departamento": 13
  501 + },
  502 + {
  503 + "id": 170,
  504 + "nombre": "Jesus",
  505 + "departamento": 13
  506 + },
  507 + {
  508 + "id": 155,
  509 + "nombre": "Alto Vera",
  510 + "departamento": 13
  511 + },
  512 + {
  513 + "id": 184,
  514 + "nombre": "Yatytay",
  515 + "departamento": 13
  516 + }
  517 + ],
  518 + "14": [
  519 + {
  520 + "id": 186,
  521 + "nombre": "San Ignacio",
  522 + "departamento": 14
  523 + },
  524 + {
  525 + "id": 188,
  526 + "nombre": "San Miguel",
  527 + "departamento": 14
  528 + },
  529 + {
  530 + "id": 189,
  531 + "nombre": "San Patricio",
  532 + "departamento": 14
  533 + },
  534 + {
  535 + "id": 185,
  536 + "nombre": "Ayolas",
  537 + "departamento": 14
  538 + },
  539 + {
  540 + "id": 191,
  541 + "nombre": "Santa Rosa",
  542 + "departamento": 14
  543 + }
  544 + ],
  545 + "15": [
  546 + {
  547 + "id": 201,
  548 + "nombre": "Isla Umbu",
  549 + "departamento": 15
  550 + },
  551 + {
  552 + "id": 207,
  553 + "nombre": "San Juan Bautista De Ñeembucu",
  554 + "departamento": 15
  555 + },
  556 + {
  557 + "id": 205,
  558 + "nombre": "Paso De Patria",
  559 + "departamento": 15
  560 + },
  561 + {
  562 + "id": 197,
  563 + "nombre": "Desmochados",
  564 + "departamento": 15
  565 + },
  566 + {
  567 + "id": 206,
  568 + "nombre": "Tacuaras",
  569 + "departamento": 15
  570 + },
  571 + {
  572 + "id": 203,
  573 + "nombre": "Pilar",
  574 + "departamento": 15
  575 + }
  576 + ],
  577 + "16": [
  578 + {
  579 + "id": 220,
  580 + "nombre": "Pirayu",
  581 + "departamento": 16
  582 + },
  583 + {
  584 + "id": 215,
  585 + "nombre": "General Bernardino Caballero",
  586 + "departamento": 16
  587 + },
  588 + {
  589 + "id": 226,
  590 + "nombre": "Ybycui",
  591 + "departamento": 16
  592 + },
  593 + {
  594 + "id": 221,
  595 + "nombre": "Quyquyho",
  596 + "departamento": 16
  597 + },
  598 + {
  599 + "id": 211,
  600 + "nombre": "Acahay",
  601 + "departamento": 16
  602 + },
  603 + {
  604 + "id": 258,
  605 + "nombre": "María Antonia",
  606 + "departamento": 16
  607 + },
  608 + {
  609 + "id": 214,
  610 + "nombre": "Escobar",
  611 + "departamento": 16
  612 + },
  613 + {
  614 + "id": 223,
  615 + "nombre": "Sapucai",
  616 + "departamento": 16
  617 + },
  618 + {
  619 + "id": 212,
  620 + "nombre": "Caapucu",
  621 + "departamento": 16
  622 + },
  623 + {
  624 + "id": 218,
  625 + "nombre": "Paraguari",
  626 + "departamento": 16
  627 + }
  628 + ],
  629 + "17": [
  630 + {
  631 + "id": 236,
  632 + "nombre": "Tte. Esteban Martinez",
  633 + "departamento": 17
  634 + },
  635 + {
  636 + "id": 235,
  637 + "nombre": "Villa Hayes",
  638 + "departamento": 17
  639 + },
  640 + {
  641 + "id": 230,
  642 + "nombre": "Jose Falcon",
  643 + "departamento": 17
  644 + },
  645 + {
  646 + "id": 234,
  647 + "nombre": "Tte 1ro Manuel Irala Fernandez",
  648 + "departamento": 17
  649 + },
  650 + {
  651 + "id": 233,
  652 + "nombre": "Nanawa",
  653 + "departamento": 17
  654 + },
  655 + {
  656 + "id": 231,
  657 + "nombre": "Pozo Colorado",
  658 + "departamento": 17
  659 + },
  660 + {
  661 + "id": 232,
  662 + "nombre": "Puerto Pinasco",
  663 + "departamento": 17
  664 + }
  665 + ],
  666 + "18": [
  667 + {
  668 + "id": 237,
  669 + "nombre": "25 De Diciembre",
  670 + "departamento": 18
  671 + },
  672 + {
  673 + "id": 254,
  674 + "nombre": "Union",
  675 + "departamento": 18
  676 + },
  677 + {
  678 + "id": 243,
  679 + "nombre": "Guajayvi",
  680 + "departamento": 18
  681 + },
  682 + {
  683 + "id": 255,
  684 + "nombre": "Yataity Del Norte",
  685 + "departamento": 18
  686 + },
  687 + {
  688 + "id": 250,
  689 + "nombre": "San Pedro Del Ykuamandiyu",
  690 + "departamento": 18
  691 + },
  692 + {
  693 + "id": 239,
  694 + "nombre": "Capiibary",
  695 + "departamento": 18
  696 + },
  697 + {
  698 + "id": 251,
  699 + "nombre": "Santa Rosa Del Aguaray",
  700 + "departamento": 18
  701 + },
  702 + {
  703 + "id": 245,
  704 + "nombre": "Liberacion",
  705 + "departamento": 18
  706 + },
  707 + {
  708 + "id": 256,
  709 + "nombre": "Yryvu Cua",
  710 + "departamento": 18
  711 + },
  712 + {
  713 + "id": 252,
  714 + "nombre": "Tacuati",
  715 + "departamento": 18
  716 + },
  717 + {
  718 + "id": 244,
  719 + "nombre": "Itacurubi Del Rosario",
  720 + "departamento": 18
  721 + },
  722 + {
  723 + "id": 246,
  724 + "nombre": "Lima",
  725 + "departamento": 18
  726 + },
  727 + {
  728 + "id": 253,
  729 + "nombre": "Villa Del Rosario",
  730 + "departamento": 18
  731 + }
  732 + ],
  733 + "19": [
  734 + {
  735 + "id": 257,
  736 + "nombre": "Desde el Exterior",
  737 + "departamento": 19
  738 + }
  739 + ]
  740 +}
  1 +import { mergeDeepRight } from 'ramda'
  2 +import { Notifications } from 'expo'
  3 +import { NOTIFICATION_ICON } from '../constants'
  4 +
  5 +
  6 +export const notify = (content) => {
  7 + const notification = mergeDeepRight({
  8 + ios: { sound: true },
  9 + android: {
  10 + icon: NOTIFICATION_ICON,
  11 + sound: true,
  12 + priority: 'high',
  13 + sticky: false,
  14 + vibrate: true
  15 + }
  16 + }, content)
  17 +
  18 + const t = new Date()
  19 + t.setSeconds(t.getSeconds() + 1)
  20 + const schedulingOptions = { time: t }
  21 +
  22 + Notifications.scheduleLocalNotificationAsync(notification, schedulingOptions)
  23 +}
Please register or login to post a comment