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 UIKit | |
import GoogleMobileAds | |
//MARK: - Google Ads Unit ID | |
struct GoogleAdsUnitID { | |
//Google Test Unit ID | |
struct Test { | |
static var strBannerAdsID = "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXXX" | |
static var strInterstitialAdsID = "ca-app-pub-XXXXXXXXXXXXXXXX/XXXXXXXXXXX" |
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 UIKit | |
public protocol ContainerViewControllerDelegate { | |
func outerScrollViewShouldScroll() -> Bool | |
} | |
public class BaseScrollViewController: UIViewController, UIScrollViewDelegate { | |
public var topVc: UIViewController? | |
public var leftVc: UIViewController! |
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
// For Pass Valid Parameters & number of Images in Array in Image Upload Function | |
var dicImgData : NSMutableDictionary? = NSMutableDictionary() | |
if let img = UIImage(named: "Your Image") { | |
if let data:Data = UIImagePNGRepresentation(img) { | |
var imageData : NSData = data | |
dicImgData! .setObject(imageData, forKey: "data" as NSCopying) | |
dicImgData! .setObject("file", forKey: "name" as NSCopying) | |
dicImgData! .setObject("file.png", forKey: "fileName" as NSCopying) |
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 UIKit | |
class SwiftyProgressHUD: UIView { | |
private var backView : UIView? | |
private var progressIndicator : UIActivityIndicatorView? | |
private var titleLabel : UILabel? | |
private var footerLabel : UILabel? | |
//Customizable properties |
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 styles from './styles'; | |
import Wallpaper from "../Wallpaper/index"; | |
import BottomBar from "../BottomBar/index"; | |
import {View,Image,Text,TouchableHighlight,Alert } from 'react-native'; | |
import HomeTopBar from "../HomeTopBar/index"; | |
import { Container, Header, Content ,Button,Icon} from 'native-base'; | |
import home1 from '../../assets/images/home1.png'; | |
import home2 from '../../assets/images/home2.png'; | |
import home3 from '../../assets/images/home3.png'; |
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 { Router, Stack, Scene ,Reducer} from 'react-native-router-flux'; | |
import LoginScreen from './LoginScreen' | |
import HomeView from './HomeView' | |
import {AsyncStorage} from "react-native"; | |
const USER_KEY = "user-auth"; | |
const reducerCreate = params => { | |
const defaultReducer = new Reducer(params); | |
return (state, action) => { |
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
**First Create BottomBar.js** | |
import React, { Component, PropTypes } from 'react'; | |
import { | |
View, | |
Text, | |
StyleSheet, | |
Button, | |
Dimensions |
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 UIKit | |
import SystemConfiguration | |
import UserNotifications | |
class AppUtility: NSObject { | |
// MARK: - Network Connection Methods | |
class func isNetworkAvailableWithBlock(_ completion: @escaping (_ wasSuccessful: Bool) -> Void) { |
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 Foundation | |
import UserNotifications | |
import MapKit | |
public class DLNotificationScheduler{ | |
public init () { | |
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 Foundation | |
import UIKit | |
/// The maximum allowed notifications to be scheduled at a time by iOS. | |
///- important: Do not change this value. Changing this value to be over | |
/// 64 will cause some notifications to be discarded by iOS. | |
let MAX_ALLOWED_NOTIFICATIONS = 64 | |
///- author: Ahmed Abdul Badie | |
class ABNScheduler { |