Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
bump rn to latest
  • Loading branch information
Ethella committed Apr 11, 2025
commit 0e2d52425170ea75f9143c71f5ca02d2b06bfd45
8 changes: 8 additions & 0 deletions .idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/inspectionProfiles/Project_Default.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/misc.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/modules.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/prettier.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

16 changes: 16 additions & 0 deletions .idea/react-native-demo.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 0 additions & 6 deletions MagicBareRnExample/.buckconfig

This file was deleted.

66 changes: 0 additions & 66 deletions MagicBareRnExample/.flowconfig

This file was deleted.

28 changes: 18 additions & 10 deletions MagicBareRnExample/.gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ DerivedData
*.hmap
*.ipa
*.xcuserstate
ios/.xcode.env.local
**/.xcode.env.local

# Android/IntelliJ
#
Expand All @@ -31,19 +31,16 @@ local.properties
*.iml
*.hprof
.cxx/
*.keystore
!debug.keystore
.kotlin/

# node.js
#
node_modules/
npm-debug.log
yarn-error.log

# BUCK
buck-out/
\.buckd/
*.keystore
!debug.keystore

# fastlane
#
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
Expand All @@ -60,8 +57,19 @@ buck-out/
*.jsbundle

# Ruby / CocoaPods
/ios/Pods/
**/Pods/
/vendor/bundle/

# IntelliJ
.idea
# Temporary files created by Metro to check the health of the file watcher
.metro-health-check*

# testing
/coverage

# Yarn
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
1 change: 0 additions & 1 deletion MagicBareRnExample/.node-version

This file was deleted.

1 change: 0 additions & 1 deletion MagicBareRnExample/.ruby-version

This file was deleted.

2 changes: 1 addition & 1 deletion MagicBareRnExample/.watchmanconfig
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{}
{}
49 changes: 20 additions & 29 deletions MagicBareRnExample/App.tsx
Original file line number Diff line number Diff line change
@@ -1,46 +1,37 @@
import { SafeAreaProvider } from 'react-native-safe-area-context';
import React from 'react';
import useColorScheme from './hooks/useColorScheme';
import Navigation from './navigation';

import { Magic } from '@magic-sdk/react-native-bare'
import { OAuthExtension } from "@magic-ext/react-native-bare-oauth";
import Web3 from 'web3'
import { ENV, API_KEY } from './config/env';
import { BitcoinExtension } from "@magic-ext/bitcoin";
import { GDKMSExtension } from "@magic-ext/gdkms";
import { AuthExtension } from "@magic-ext/auth";

export default function App() {
const colorScheme = useColorScheme();

const [env, setEnv] = React.useState(ENV.PROD);
const [env, setEnv] = React.useState(ENV.PROD);

const magic = new Magic(API_KEY[env], {
extensions: [
new OAuthExtension(),
new AuthExtension(),
new GDKMSExtension(),
new BitcoinExtension({
rpcUrl: 'BTC_RPC_NODE_URL',
network: 'testnet' // testnet or mainnet
})
],
});
const magic = new Magic(API_KEY[env], {
extensions: [
new OAuthExtension(),
new GDKMSExtension(),
],
});

const web3 = new Web3(magic.rpcProvider);
const web3 = new Web3(magic.rpcProvider);

const magicProps = {
magic,
web3,
setEnv,
env
}
const magicProps = {
magic,
web3,
setEnv,
env
}

return (
<SafeAreaProvider>
<magic.Relayer />
<Navigation colorScheme={colorScheme} magicProps={magicProps} />
</SafeAreaProvider>
)
return (
<SafeAreaProvider>
<magic.Relayer />
<Navigation magicProps={magicProps} />
</SafeAreaProvider>
)
}
9 changes: 6 additions & 3 deletions MagicBareRnExample/Gemfile
Original file line number Diff line number Diff line change
@@ -1,7 +1,10 @@
source 'https://rubygems.org'

# You may use http://rbenv.org/ or https://rvm.io/ to install and use this version
ruby '2.7.5'
ruby ">= 2.6.10"

gem 'cocoapods', '~> 1.13'
gem 'activesupport', '>= 6.1.7.3', '< 7.1.0'
# Exclude problematic versions of cocoapods and activesupport that causes build failures.
gem 'cocoapods', '>= 1.13', '!= 1.15.0', '!= 1.15.1'
gem 'activesupport', '>= 6.1.7.5', '!= 7.1.0'
gem 'xcodeproj', '< 1.26.0'
gem 'concurrent-ruby', '< 1.3.4'
Loading