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
const originalObject = { | |
foo: {}, | |
bar: "BAR", | |
baz: { | |
a: {}, | |
b: {}, | |
c: { | |
d: "DDD", | |
e: "EEE", | |
f: "FFF", |
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 { | |
SafeAreaView, View, | |
} from 'react-native'; | |
function App(): React.JSX.Element { | |
return ( | |
<SafeAreaView style={{ flex: 1 }}> | |
<View> | |
<View style={{ flexDirection: 'row' }}> |
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
package com.example.toastapp; | |
import androidx.appcompat.app.AppCompatActivity; | |
import android.os.Bundle; | |
import android.widget.Toast; | |
public class MainActivity extends AppCompatActivity { | |
@Override |
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
-- DisplayTextModule is some code I use to display text on screen for testing, if you see this in a code snippet, ignore this part | |
local DisplayTextModule = require(script.Parent.Parent.StarterGui.ScreenGui.Frame.TextLabel.DisplayTextModuleScript) | |
local Players = game:GetService("Players") | |
-- Works for R15, not sure if this works for R6 or not | |
local function partIsHumanoid(part) | |
if part.Name == "Head" then | |
return true | |
elseif part.Name == "UpperTorso" then |
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
local DisplayTextModule = require(script.Parent.Parent.StarterGui.ScreenGui.OnScreenLogger.TextLabel.DisplayTextModuleScript) | |
DisplayTextModule.Display("hello, world") |
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
local module = {} | |
function Display(text) | |
local textLabel = script.Parent | |
textLabel.Text = text | |
end | |
module.Display = Display | |
return module |
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
local Players = game:GetService("Players") | |
local function alterPlayer(player) | |
local character = player.Character or player.CharacterAdded:Wait() | |
local humanoid = character:WaitForChild("Humanoid") | |
local userId = player.UserId | |
local humanoidDescription = game.Players:GetHumanoidDescriptionFromUserId(userId) | |
humanoidDescription.HeadColor = Color3.fromHex("#39FF14") | |
humanoidDescription.LeftArmColor = Color3.fromHex("#39FF14") | |
humanoidDescription.RightArmColor = Color3.fromHex("#39FF14") |
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
let externalComponentName = "YourComponentName" | |
let viewController = YourViewController() | |
registerExternalComponent(externalComponentName, viewController) |
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
// | |
// RNNUtility.m | |
// yourapp | |
// | |
// Created by Christopher Pedersen on 8/5/22. | |
// Copyright © 2022 Super Sweet Co. All rights reserved. | |
// | |
#import <Foundation/Foundation.h> | |
#import <ReactNativeNavigation/ReactNativeNavigation.h> |
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
// | |
// RNNUtility.h | |
// yourapp | |
// | |
// Created by Christopher Pedersen on 8/5/22. | |
// Copyright © 2022 Super Sweet Co. All rights reserved. | |
// | |
#ifndef RNNUtility_h | |
#define RNNUtility_h |
NewerOlder