This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
import { Component, OnInit, AfterViewInit } from "@angular/core"; | |
import { HttpClient } from "@angular/common/http"; | |
import { Title } from "@angular/platform-browser"; | |
import { Observable } from 'rxjs/Observable'; | |
import 'rxjs/add/observable/of'; | |
import 'rxjs/add/operator/map'; | |
import 'rxjs/add/operator/delay'; | |
@Component({ |
listOfObjects.filter(x => x.obj > 1); //or any other condition to filter the list | |
listOfObjects.filter(x => anotherList.includes(x.anyObject)); |
import { Pipe, PipeTransform } from '@angular/core'; | |
@Pipe({ | |
name: 'filter' | |
}) | |
export class FilterPipe implements PipeTransform { | |
transform(items: any[], searchText: string): any[] { | |
if (!items) return []; | |
if (!searchText) return items; | |
searchText = searchText.toLowerCase(); | |
return items.filter(it => { |
//A special thanks to Sabih Siddiqui : https://github.com/siddiquisabih | |
changeDateToCurrentTimezone(date) { | |
let splitDate = date.split('-') | |
let year = parseInt(splitDate[0]) | |
let month = parseInt(splitDate[1]) | |
let splitCurrentDate = splitDate[2] | |
let newDate = splitCurrentDate.split('T') | |
let day = parseInt(newDate[0]) |
This is for my personal use, things might not be correctly explained here. For the official docs please check https://github.com/airbnb/react-native-maps
Steps from scratch:
1.react-native init GoogleMapPlayground
2. cd GoogleMapPlayground
class FragmentHome : Fragment() { | |
//Any other widgets such as Button, Layouts and etc be declared also like this | |
var tvHomeLabel:TextView? = null | |
override fun onCreate(savedInstanceState: Bundle?) { | |
super.onCreate(savedInstanceState) | |
} |