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 * as React from "react"; | |
import { NavigationContainer } from "@react-navigation/native"; | |
import { useTheme } from "react-native-paper"; | |
import { Provider as PaperProvider } from "react-native-paper"; | |
import { createNativeStackNavigator } from "@react-navigation/native-stack"; | |
import SearchScreen from "./Search"; | |
const Stack = createNativeStackNavigator(); | |
const App = () => { |
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 React, { useRef } from 'react'; | |
import { | |
StyleSheet, | |
TouchableOpacity, | |
Animated, | |
Pressable, | |
View, | |
Image, | |
} from 'react-native'; | |
import { |
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 * as React from 'react'; | |
import { Image, StyleSheet } from 'react-native'; | |
import Box from './Box'; | |
import Text from './Text'; | |
import Button from './Button'; | |
export default function AssetExample() { | |
return ( | |
<Box | |
alignItems="center" |
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 * as React from 'react'; | |
import Constants from 'expo-constants'; | |
import { ThemeProvider } from '@shopify/restyle'; | |
// You can import from local files | |
import theme from './theme'; | |
import AssetExample from './components/AssetExample'; | |
import Box from './components/Box'; | |
import Text from './components/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 { createTheme } from '@shopify/restyle' | |
const palette = { | |
greenLight: '#56DCBA', | |
greenPrimary: '#0ECD9D', | |
gray: '#F0F2F3', | |
black: '#0B0B0B', | |
white: '#FFFFFF', | |
}; |
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 { configureStore, getDefaultMiddleware } from '@reduxjs/toolkit' | |
import { RootReducer } from '../reducers'; | |
const middlewares = getDefaultMiddleware({ | |
// https://github.com/reduxjs/redux-toolkit/issues/415 | |
immutableCheck: false, | |
}); | |
if (__DEV__) { | |
const createDebugger = require("redux-flipper").default; |
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 { createStore, applyMiddleware } from "redux"; | |
const middlewares = [ | |
/* other middlewares */ | |
]; | |
if (__DEV__) { | |
const createDebugger = require("redux-flipper").default; | |
middlewares.push(createDebugger()); | |
} |
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 React from 'react'; | |
if (process.env.NODE_ENV === 'development') { | |
const whyDidYouRender = require('@welldone-software/why-did-you-render'); | |
whyDidYouRender(React, { | |
trackAllPureComponents: true, | |
}); | |
} |
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
[ | |
{ | |
"quote": "My impact in the world does not come from my knowledge but from my presence.", | |
"author": "Sadhguru" | |
}, | |
{ | |
"quote": "Pleasure is only a false image of joy. It is beautiful, but it is just a reflection.", | |
"author": "Sadhguru" | |
}, | |
{ |
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 * as React from 'react'; | |
import { Linking, Platform, ActivityIndicator } from 'react-native'; | |
import AsyncStorage from '@react-native-async-storage/async-storage'; | |
import { NavigationContainer } from '@react-navigation/native'; | |
const PERSISTENCE_KEY = 'NAVIGATION_STATE'; | |
import { AppNavigation } from './navigation/AppNavigation'; | |
export default function App() { |