$ yarn run solana:build:program
$ solana program deploy /home/zu/project/figment/learn-web3-dapp/dist/solana/program/helloworld.so
| // | |
| // 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 |
| #import "RNNUtility.h" |
| //#import "AppDelegate.h" | |
| //#import <React/RCTBridge.h> | |
| //#import <React/RCTBundleURLProvider.h> | |
| //#import "RNNCustomViewController.h" | |
| //#import <ReactNativeNavigation/ReactNativeNavigation.h> | |
| class AppDelegate : RCTBridgeDelegate { |
| #!/bin/zsh | |
| # Put this script in your git repo: /Users/yourusername/yourrepo/delete_old_branches.sh | |
| # Create a text file called old_branches.txt, put this in your repo as well: /Users/yourusername/yourrepo/old_branches.txt | |
| # In old_branches.txt, put the names of the branches you want to delete. 1 Branch name per line, no commas. | |
| # Then run... | |
| # cd /Users/yourusername/yourrepo | |
| # chmod 755 delete_old_branches.sh | |
| # git config --global --add safe.directory /Users/yourusername/yourrepo |
| import React, { useState } from 'react'; | |
| import { | |
| View, | |
| SafeAreaView, | |
| Dimensions, | |
| Image, | |
| } from 'react-native'; | |
| import { GestureDetector, Gesture } from 'react-native-gesture-handler'; | |
| import Animated, { | |
| useSharedValue, |
| Navigation.events().registerComponentDidAppearListener(async ({ componentName, componentType }) => { | |
| if (componentType === 'Component') { | |
| alert(`screen: ${componentName}`); | |
| } | |
| }); |
| import React from 'react'; | |
| import { | |
| SafeAreaView, | |
| Text, | |
| } from 'react-native'; | |
| class App extends React.Component { | |
| constructor(props) { | |
| super(props); | |
| } |
| /* | |
| UUIDs (Universally Unique IDentifier), also known as GUIDs (Globally Unique IDentifier), according to RFC 4122, are identifiers designed to provide certain uniqueness guarantees. | |
| While it is possible to implement RFC-compliant UUIDs in a few lines of JavaScript code (e.g., see @broofa's answer, below) there are several common pitfalls: | |
| Invalid id format (UUIDs must be of the form "xxxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx", where x is one of [0-9, a-f] M is one of [1-5], and N is [8, 9, a, or b] | |
| Use of a low-quality source of randomness (such as Math.random) | |
| Thus, developers writing code for production environments are encouraged to use a rigorous, well-maintained implementation such as the uuid module. |
| function takeThreeArgs(arg1, arg2, arg3) { | |
| console.log(arg1); | |
| console.log(arg2); | |
| console.log(arg3); | |
| } | |
| const myArgs = ["foo", "bar", "baz"]; | |
| takeThreeArgs.apply(null, myArgs); |
$ yarn run solana:build:program
$ solana program deploy /home/zu/project/figment/learn-web3-dapp/dist/solana/program/helloworld.so