Skip to content

Instantly share code, notes, and snippets.

View hayanisaid's full-sized avatar
🚀
I'm Full Stack JavaScript developer and Technical writer

Said Hayani hayanisaid

🚀
I'm Full Stack JavaScript developer and Technical writer
View GitHub Profile
import Analytics from '@react-native-firebase/analytics';
import {View,Text, TouchableOpacity, TouchableHighlight} from 'react-native';
import Analytics from 'appcenter-analytics';
export default App(){
import {View,Text, TouchableOpacity, TouchableHighlight} from 'react-native';
import Analytics from 'appcenter-analytics';
export default App(){
const __OnBuyButtonPressed=()=>{
Analytics.trackEvent('Purchase', { price: '9.99', type: 'cloth' });
}
import {View,Text} from 'react-native'
import { withTheme } from 'react-native-paper';
const CardTitle = ({theme})=>{
return (
<View>
<Text style={{
fontSize:theme.fonts.regular,
import { DefaultTheme, Provider as PaperProvider } from 'react-native-paper';
import Home from '/home'
const theme = {
colors: {
primary: '#90eee1',
accent: '#6356e5',
},
fonts:{
regular:16,
# copyright https://github.com/FaridSafi/react-native-gifted-chat
import {GiftedChat} from 'react-native-gifted-chat';
import React, {useCallback,useState} from 'react';
const App: () => React$Node = () => {
const [messages, setMessages] = React.useState([]);
React.useEffect(() => {
setMessages([
{
_id: 1,
import LottieView from 'lottie-react-native';
<LottieView
source={require('./images/lottie-af-animation.json')}
loop
autoPlay
/>
import {SvgXml} from 'react-native-svg';
import SVGImage from './images/undraw_happy_2021_h01d.svg';
const App: () => React$Node = () => {
return (
<>
<View style={styles.container}>
<StatusBar barStyle="dark-content" />
<SafeAreaView>
<ScrollView>
<SvgXml width="200" height="200" xml={SVGImage} />
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
TouchableOpacity,
View,
Text,
StatusBar,
} from 'react-native';
/**
* Sample React Native App
* https://github.com/facebook/react-native
*
* @format
* @flow strict-local
*/
import React from 'react';
import {
import React from 'react';
import {
SafeAreaView,
StyleSheet,
ScrollView,
View,
Text,
StatusBar,
TouchableHighlight,
} from 'react-native';