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
| @available(iOS 13.0, *) | |
| public struct CustomScrollView<Content: View>: UIViewRepresentable { | |
| var size: CGSize | |
| var viewBuilder: () -> Content | |
| var handleRefreshControl: () -> Void | |
| public init(@ViewBuilder viewBuilder: @escaping () -> Content, size: CGSize, handleRefreshControl: @escaping () -> Void) { | |
| self.size = size | |
| self.viewBuilder = viewBuilder |
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 'package:flutter/material.dart'; | |
| import 'package:vector_math/vector_math.dart' as v_math; | |
| void main() => runApp(MyApp()); | |
| class MyApp extends StatelessWidget { | |
| @override | |
| Widget build(BuildContext context) { | |
| return MaterialApp( | |
| title: 'Flutter Demo', |
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 {Dimensions, Platform, StyleSheet} from 'react-native'; | |
| import {isIphoneX, getStatusBarHeight} from 'react-native-iphone-x-helper'; | |
| import PropTypes from 'prop-types'; | |
| /** | |
| * DETECTION AND DIMENSIONS CODE FROM: | |
| * https://github.com/react-community/react-native-safe-area-view | |
| */ |
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
| module.exports = { | |
| project: { | |
| android: { | |
| stringsPath: 'app/src/main/res/values/strings.xml', | |
| mainFilePath: 'app/src/main/java/com/your_package_name/MainApplication.java', | |
| }, | |
| }, | |
| }; |
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, { useState } from "react"; | |
| import { StyleSheet, Text, TouchableOpacity, View } from "react-native"; | |
| import Animated from "react-native-reanimated"; | |
| import { timing } from "react-native-redash"; | |
| import { colors } from "../../theme"; | |
| const tabs = [{ label: "Ng" }, { label: "T" }, { label: "Th" }, { label: "N" }]; | |
| const numberTabs = tabs.length; | |
| const { Value, useCode, block, multiply, set } = Animated; |
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
| <manifest xmlns:android="http://schemas.android.com/apk/res/android" | |
| package="com.smgboilerplate"> | |
| <uses-permission android:name="android.permission.INTERNET" /> | |
| <application | |
| android:name=".MainApplication" | |
| android:label="@string/app_name" | |
| android:icon="@mipmap/ic_launcher" | |
| android:roundIcon="@mipmap/ic_launcher_round" |
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
| #ReactNavigaionV5 | |
| Android: Textinput đẩy bottom tab lên trên. | |
| IOS: bình thường. | |
| Giải pháp: Trong androidManifest set windowSoftInputMode=“adjustPan” |
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
| function flatten(arr) { | |
| let result = []; | |
| for (let item of arr) { | |
| if (Array.isArray(item)) { | |
| result = result.concat(flatten(item)); | |
| } else { | |
| result.push(item); | |
| } | |
| } | |
| return result; |
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 from "react"; | |
| import { StyleSheet } from "react-native"; | |
| import Animated, { Easing } from "react-native-reanimated"; | |
| import { Block } from "smg-react-native-components"; | |
| const loop = loopConfig => { | |
| const { clock, easing, duration, autoStart } = { | |
| clock: new Clock(), | |
| easing: Easing.linear, | |
| duration: 250, |
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
| { | |
| "properties": { | |
| "FID": 55, | |
| "District": "Gurugram", | |
| "Development Plan": "Gurgaon-Manesar", | |
| "Controlled Area": "Controlled area around Government Primary School at village Baskusla", | |
| "Village": null, | |
| "Rectangle No.": "44", | |
| "Area": 3665.413, | |
| "Reference": null, |