This file contains 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 {NavigationContainer, useNavigation} from "@react-navigation/native"; | |
import {Button, SafeAreaView, Text, View, StyleSheet, TouchableOpacity, Animated} from "react-native"; | |
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; | |
import {createNativeStackNavigator} from "react-native-screens/native-stack"; | |
import {Appbar, DefaultTheme, Provider as PaperProvider} from 'react-native-paper'; | |
import {PanGestureHandler} from 'react-native-gesture-handler'; | |
import GestureRecognizer, {swipeDirections} from "react-native-swipe-detect"; | |
const KArrBar = (props) => ( | |
<Appbar style={styles.bottom}> |
This file contains 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 {NavigationContainer, useNavigation} from "@react-navigation/native"; | |
import {Button, SafeAreaView, Text, View, StyleSheet, TouchableOpacity, Animated} from "react-native"; | |
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; | |
import {createNativeStackNavigator} from "react-native-screens/native-stack"; | |
import {Appbar, DefaultTheme, Provider as PaperProvider} from 'react-native-paper'; | |
import {PanGestureHandler} from 'react-native-gesture-handler'; | |
import GestureRecognizer, { swipeDirections } from "react-native-swipe-detect"; | |
const KArrBar = (props) => ( | |
<Appbar style={styles.bottom}> | |
<Appbar.Action icon="menu" onPress={() => { |
This file contains 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 {NavigationContainer, useNavigation} from "@react-navigation/native"; | |
import {Button, SafeAreaView, Text, View, StyleSheet} from "react-native"; | |
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; | |
import {createNativeStackNavigator} from "react-native-screens/native-stack"; | |
import {Appbar, DefaultTheme, Provider as PaperProvider} from 'react-native-paper'; | |
const KArrBar = (props) => ( | |
<Appbar style={styles.bottom}> | |
<Appbar.Action icon="menu" onPress={() => { | |
props.navigation.push('MenuScreen') |
This file contains 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 {NavigationContainer, useNavigation} from "@react-navigation/native"; | |
import {Button, SafeAreaView, Text, View} from "react-native"; | |
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; | |
import {createNativeStackNavigator} from "react-native-screens/native-stack"; | |
function DetailsScreen() { | |
const navigation = useNavigation() | |
return ( | |
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> | |
<Text>Details Screen</Text> |
This file contains 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 {NavigationContainer, useNavigation} from "@react-navigation/native"; | |
import {Button, SafeAreaView, Text, View} from "react-native"; | |
import {createStackNavigator, TransitionPresets} from '@react-navigation/stack'; | |
import {createNativeStackNavigator} from "react-native-screens/native-stack"; | |
function DetailsScreen() { | |
const navigation = useNavigation() | |
return ( | |
<View style={{flex: 1, alignItems: 'center', justifyContent: 'center'}}> | |
<Text>Details Screen</Text> |
This file contains 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
createStackNavigator |
This file contains 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
// With Flow type annotations (https://flow.org/) | |
import React, {useEffect, useRef, useState} from "react"; | |
// Without Flow type annotations | |
import {View} from 'react-native' | |
import {SafeAreaView} from "react-native-safe-area-context"; | |
import BlueButton from "../components/BlueButton"; | |
import {useNavigation} from "@react-navigation/native"; | |
import sharedService from "../services/SharedService"; | |
import {Colors} from "../colors/Color"; | |
import GoBackHeader from "../components/GoBackHeader"; |
This file contains 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 {observer} from "mobx-react"; | |
import {ActivityIndicator, SafeAreaView, StyleSheet, View} from "react-native"; | |
import React, {useEffect, useState} from "react"; | |
import {Text} from "react-native-paper"; | |
import loginService from "../services/LoginService"; | |
export default observer( | |
function LoginScreen(props) { | |
const {posts, loading, setLoading} = loginService | |
useEffect(() => { |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@color/splashscreen_background"/> | |
<item | |
android:gravity="fill_horizontal|fill_vertical" | |
> | |
<bitmap | |
android:gravity="fill_horizontal|fill_vertical" | |
android:src="@drawable/splashscreen_image" | |
/> |
This file contains 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
<?xml version="1.0" encoding="UTF-8" standalone="yes"?> | |
<layer-list xmlns:android="http://schemas.android.com/apk/res/android"> | |
<item android:drawable="@color/splashscreen_background"/> | |
<item> | |
<bitmap | |
android:gravity="fill_horizontal|fill_vertical" | |
android:src="@drawable/splashscreen_image" | |
/> | |
</item> | |
</layer-list> |