This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Sample React Native App | |
* https://github.com/facebook/react-native | |
* | |
* @format | |
* @flow | |
*/ | |
import React, { useState, useEffect } from 'react'; | |
import Icon from 'react-native-vector-icons/MaterialCommunityIcons'; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import getRealm from '../realm'; | |
import { Event } from '../../database/entities'; | |
export default class EventService { | |
public async save(events: Event[]): Promise<Event[]> { | |
const realm = await getRealm(); | |
realm.write(() => { | |
events.forEach(event => { | |
realm.create(Event.schema.name, event, true); | |
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import React, {useEffect, useState} from 'react'; | |
import {Dimensions} from 'react-native'; | |
import AsyncStorage from '@react-native-community/async-storage'; | |
import { | |
Container, | |
List, | |
ContainerPasto, | |
MapaContainer, | |
Mapa, |