This file contains hidden or 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 android.content.Context | |
| import android.util.Log | |
| import io.reactivex.rxjava3.android.schedulers.AndroidSchedulers | |
| import io.reactivex.rxjava3.core.Observable | |
| import io.reactivex.rxjava3.disposables.Disposable | |
| import io.reactivex.rxjava3.schedulers.Schedulers | |
| import io.reactivex.rxjava3.subjects.PublishSubject | |
| import okhttp3.MediaType | |
| import okhttp3.OkHttpClient |
This file contains hidden or 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
| // imgLib -> Image package from https://pub.dartlang.org/packages/image | |
| import 'package:image/image.dart' as imglib; | |
| import 'package:camera/camera.dart'; | |
| Future<List<int>> convertImagetoPng(CameraImage image) async { | |
| try { | |
| imglib.Image img; | |
| if (image.format.group == ImageFormatGroup.yuv420) { | |
| img = _convertYUV420(image); | |
| } else if (image.format.group == ImageFormatGroup.bgra8888) { |
This file contains hidden or 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, { Component } from 'react'; | |
| import { Image, View, ViewPropTypes } from 'react-native'; | |
| import PropTypes from 'prop-types'; | |
| import FastImage from 'react-native-fast-image'; | |
| export default class FastImagePlaceholder extends Component { | |
| constructor(props) { | |
| super(props); | |
| this.state = { loaded: false }; | |
| } |
This file has been truncated, but you can view the full file.
This file contains hidden or 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
| [ | |
| { | |
| "code": "AAA", | |
| "lat": "-17.3595", | |
| "lon": "-145.494", | |
| "name": "Anaa Airport", | |
| "city": "Anaa", | |
| "state": "Tuamotu-Gambier", | |
| "country": "French Polynesia", |