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
using System.Diagnostics.CodeAnalysis; | |
using UnityEngine; | |
// Dont forget to add "using RDG;" to the top of your script! | |
namespace RDG | |
{ | |
/// <summary> | |
/// Class for controlling Vibration. Automatically initializes before scene is loaded. | |
/// </summary> | |
public static class Vibration |
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
* { | |
box-sizing: border-box; | |
} | |
body { | |
margin: 0; | |
font-family: "Poppins", Arial, sans-serif; | |
} | |
p { | |
margin: 0; | |
padding: 0; |
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
export const getNotes = () => { | |
return JSON.parse(localStorage.getItem("simple_notes_app") || ""); | |
}; | |
export const setNotes = (newValue: string): void => { | |
localStorage.setItem("simple_notes_app", newValue); | |
}; |
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
"allowlist": { | |
"dialog": { | |
"save": true | |
}, | |
"fs": { | |
"writeFile": true, | |
"removeFile": true, | |
"readFile": true, | |
"scope": ["$DOCUMENT/*", "$DESKTOP/*"] | |
}, |
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 "./App.scss"; | |
import NotesIcon from "./assets/note_icon.png"; | |
import PlusIcon from "./assets/plus_icon.png"; | |
import DeleteIcon from "./assets/delete_icon.png"; | |
import { useEffect, useState } from "react"; | |
import { | |
getNotes, | |
setNotes as setNotesOnLocalStorage, | |
} from "./helpers/getFromLocalStorage"; | |
import dayjs from "dayjs"; |
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 {StyleSheet} from 'react-native'; | |
export default (colors) => StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: colors.primaryBackground | |
}, | |
settingsItems: { | |
padding: 10, | |
}, |
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, {useState} from 'react'; | |
import {View, Text, TouchableOpacity, Switch} from 'react-native'; | |
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; | |
import _ from './style'; | |
import useTheme from '../../hooks/useTheme'; | |
import Header from '../../components/Header/'; | |
export default props => { | |
const [theme, __, updateTheme] = useTheme(); |
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 {StyleSheet} from 'react-native'; | |
export default (colors) => StyleSheet.create({ | |
container: { | |
flex: 1, | |
backgroundColor: colors.primaryBackground | |
}, | |
floatingContainer: { | |
borderRadius: 15, | |
margin: 15, |
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'; | |
import {View, Text, TouchableOpacity} from 'react-native'; | |
import MaterialIcons from 'react-native-vector-icons/MaterialIcons'; | |
import _ from './style'; | |
import useTheme from '../../hooks/useTheme'; | |
import Header from '../../components/Header'; | |
export default () => { | |
const [theme] = useTheme(); |
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 {useContext} from 'react'; | |
import {ThemeContext} from '../components/ThemeManager'; | |
import * as AsyncStorage from '../components/AsyncStorage'; | |
export default props => { | |
const {theme, toggleTheme} = useContext(ThemeContext); | |
const readTheme = async () => { | |
const data = await AsyncStorage.retrieveData('SETTINGS_KEY'); | |
if (data !== null && data !== undefined) { |
NewerOlder