Skip to content

Instantly share code, notes, and snippets.

View guillainbisimwa's full-sized avatar
🎯
Focusing

Guillain bisimwa guillainbisimwa

🎯
Focusing
View GitHub Profile
@guillainbisimwa
guillainbisimwa / Block.js
Created October 22, 2021 22:47
Reusable components
import React from "react";
import PropTypes from "prop-types";
import { StyleSheet, View } from "react-native";
import { Colors, Layout } from "../Constants";
const Block = (props) => {
const blockStyles = [
styles.block,
@guillainbisimwa
guillainbisimwa / Button.js
Created October 22, 2021 16:52
Touchable
import React from "react";
import { View, Button, StyleSheet } from "react-native";
const MyButton = () => {
return(
<View style={styles.btnContainer}>
<Button title="Click me 1" />
<View style={styles.btnContainer2}>
<Button color='red' title="Click me 2" />
<Button color='green' title="Click me 3" onPress={ ()=>{
@guillainbisimwa
guillainbisimwa / App.js
Last active October 19, 2021 21:17
Navigation
import { NavigationContainer } from '@react-navigation/native';
import { createNativeStackNavigator } from '@react-navigation/native-stack';
import React from 'react';
import { Category, Details, Home } from './Screens';
const Stack = createNativeStackNavigator();
const App = () => {
return (
import React from "react";
import { View, Text, StyleSheet} from "react-native";
const Notifications = () => {
return (
<View style={styles.container}>
<Text style={styles.title}>I'm a junior RN dev</Text>
</View>
)
@guillainbisimwa
guillainbisimwa / Export.js
Created October 18, 2021 22:02
Import and Export modules
const zaio = {
firstName: 'Guy',
fullname: 'Johan'
};
export default zaio;
export default Notifications;
@guillainbisimwa
guillainbisimwa / FlatList.js
Last active October 22, 2021 17:19
Demo - Component
import React from "react";
import { View, FlatList, Text } from "react-native";
const Teams = [
{
id: 1,
name: 'Barcelona',
},
{
@guillainbisimwa
guillainbisimwa / App.js
Last active October 14, 2021 23:07
React Native - Hello World
import React from 'react';
import { StyleSheet, Text, View } from 'react-native';
export default function App() {
return (
<View style={styles.container}>
<Text>Hello World</Text>
</View>
);
}
@guillainbisimwa
guillainbisimwa / gh-pages-deploy.md
Created March 5, 2021 08:49 — forked from cobyism/gh-pages-deploy.md
Deploy to `gh-pages` from a `dist` folder on the master branch. Useful for use with [yeoman](http://yeoman.io).

Deploying a subfolder to GitHub Pages

Sometimes you want to have a subdirectory on the master branch be the root directory of a repository’s gh-pages branch. This is useful for things like sites developed with Yeoman, or if you have a Jekyll site contained in the master branch alongside the rest of your code.

For the sake of this example, let’s pretend the subfolder containing your site is named dist.

Step 1

Remove the dist directory from the project’s .gitignore file (it’s ignored by default by Yeoman).

/**
* fifteen.c
*
* Computer Science 50
* Problem Set 3
*
* Implements Game of Fifteen (generalized to d x d).
*
* Usage: fifteen d
*
{
"docs": [
{
"_id": "EVT_COVID_ETAT_ACT",
"name": "Etat actuel",
"type": "ELEMENT_VALUE_TYPE",
"isEditable": true,
"read": ["ALL"],
"create": ["ALL"],
"update": ["ALL"],