Skip to content

Instantly share code, notes, and snippets.

View learnpainless's full-sized avatar

Learn Pain Less learnpainless

View GitHub Profile
import React, { Component } from 'react';
import { View } from 'react-native';
import { Icon} from 'react-native-elements'
class BottomNavigator extends Component {
render() {
return (
<View style={{
flex: 1,
flexDirection: 'column',
import React, {Component} from 'react';
import BottomNavigator from "./BottomNavigator";
export default class App extends Component {
render() {
return (
<BottomNavigator />
);
}
}
<?xml version="1.0" encoding="utf-8"?>
<navigation xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools"
android:id="@+id/main_graph"
app:startDestination="@id/firstFragment">
<fragment
android:id="@+id/secondFragment"
android:name="com.learnpainless.androidnavigation.fragments.SecondFragment"
package com.learnpainless.androidnavigation.fragments
import android.os.Bundle
import androidx.fragment.app.Fragment
import android.view.LayoutInflater
import android.view.View
import android.view.ViewGroup
import androidx.navigation.fragment.findNavController
import com.learnpainless.androidnavigation.R
import kotlinx.android.synthetic.main.fragment_second.*
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1">
<!-- The above 3 meta tags *must* come first in the head; any other head content must come *after* these tags -->
<title>404 HTML Tempalte by Prolong Services</title>
<!-- Google font -->
* {
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
body {
padding: 0;
margin: 0;
}
<?php namespace Config;
// Create a new instance of our RouteCollection class.
$routes = Services::routes(true);
// Load the system's routing file first, so that the app and ENVIRONMENT
// can override as needed.
if (file_exists(SYSTEMPATH . 'Config/Routes.php'))
{
require SYSTEMPATH . 'Config/Routes.php';
<?php namespace Config;
use CodeIgniter\Config\BaseConfig;
class Filters extends BaseConfig
{
// Makes reading things below nicer,
// and simpler to change out script that's used.
public $aliases = [
'csrf' => \CodeIgniter\Filters\CSRF::class,
<?xml version="1.0" encoding="utf-8"?>
<layout xmlns:android="http://schemas.android.com/apk/res/android"
xmlns:app="http://schemas.android.com/apk/res-auto"
xmlns:tools="http://schemas.android.com/tools">
<LinearLayout
android:layout_width="match_parent"
android:layout_height="match_parent"
android:background="@drawable/bg_gradient"
android:orientation="vertical"
package com.prolongservices.awaz.ui.activities;
import android.databinding.DataBindingUtil;
import com.prolongservices.awaz.R;
import com.prolongservices.awaz.databinding.ActivityRegisterBinding;
public class RegisterActivity extends AppCompatActivity implements Response.Listener<Boolean> {
private static final String TAG = "RegisterActivity";
private PhoneAuthProvider.OnVerificationStateChangedCallbacks callbacks;
private FirebaseAuth mAuth;