Skip to content

Commit 28de7c2

Browse files
committed
Add all react native examples
0 parents  commit 28de7c2

550 files changed

Lines changed: 166710 additions & 0 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.gitignore

Lines changed: 153 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,153 @@
1+
node_modules/
2+
.node_modules/
3+
built/*
4+
tests/cases/rwc/*
5+
tests/cases/test262/*
6+
tests/cases/perf/*
7+
!tests/cases/webharness/compilerToString.js
8+
test-args.txt
9+
~*.docx
10+
\#*\#
11+
.\#*
12+
tests/baselines/local/*
13+
tests/baselines/local.old/*
14+
tests/services/baselines/local/*
15+
tests/baselines/prototyping/local/*
16+
tests/baselines/rwc/*
17+
tests/baselines/test262/*
18+
tests/baselines/reference/projectOutput/*
19+
tests/baselines/local/projectOutput/*
20+
tests/baselines/reference/testresults.tap
21+
tests/services/baselines/prototyping/local/*
22+
tests/services/browser/typescriptServices.js
23+
src/harness/*.js
24+
src/compiler/diagnosticInformationMap.generated.ts
25+
src/compiler/diagnosticMessages.generated.json
26+
src/parser/diagnosticInformationMap.generated.ts
27+
src/parser/diagnosticMessages.generated.json
28+
rwc-report.html
29+
*.swp
30+
build.json
31+
*.actual
32+
tests/webTestServer.js
33+
tests/webTestServer.js.map
34+
tests/webhost/*.d.ts
35+
tests/webhost/webtsc.js
36+
tests/cases/**/*.js
37+
!tests/cases/docker/*.js/
38+
tests/cases/**/*.js.map
39+
*.config
40+
scripts/eslint/built/
41+
scripts/debug.bat
42+
scripts/run.bat
43+
scripts/word2md.js
44+
scripts/buildProtocol.js
45+
scripts/ior.js
46+
scripts/authors.js
47+
scripts/configurePrerelease.js
48+
scripts/configureLanguageServiceBuild.js
49+
scripts/open-user-pr.js
50+
scripts/open-cherry-pick-pr.js
51+
scripts/processDiagnosticMessages.d.ts
52+
scripts/processDiagnosticMessages.js
53+
scripts/produceLKG.js
54+
scripts/importDefinitelyTypedTests/importDefinitelyTypedTests.js
55+
scripts/generateLocalizedDiagnosticMessages.js
56+
scripts/request-pr-review.js
57+
scripts/*.js.map
58+
scripts/typings/
59+
coverage/
60+
internal/
61+
**/.DS_Store
62+
.settings
63+
**/.vs
64+
!**/.vscode/tasks.json
65+
!**/.vscode/settings.template.json
66+
!**/.vscode/launch.template.json
67+
!**/.vscode/extensions.json
68+
!tests/cases/projects/projectOption/**/node_modules
69+
!tests/cases/projects/NodeModulesSearch/**/*
70+
!tests/baselines/reference/project/nodeModules*/**/*
71+
.idea
72+
yarn.lock
73+
yarn-error.log
74+
.parallelperf.*
75+
tests/cases/user/*/package-lock.json
76+
tests/cases/user/*/node_modules/
77+
tests/cases/user/*/**/*.js
78+
tests/cases/user/*/**/*.js.map
79+
tests/cases/user/*/**/*.d.ts
80+
!tests/cases/user/zone.js/
81+
!tests/cases/user/bignumber.js/
82+
!tests/cases/user/discord.js/
83+
tests/baselines/reference/dt
84+
.failed-tests
85+
TEST-results.xml
86+
tests/cases/user/npm/npm
87+
tests/cases/user/TypeScript-React-Starter/TypeScript-React-Starter
88+
tests/cases/user/TypeScript-Node-Starter/TypeScript-Node-Starter
89+
tests/cases/user/TypeScript-React-Native-Starter/TypeScript-React-Native-Starter
90+
tests/cases/user/TypeScript-Vue-Starter/TypeScript-Vue-Starter
91+
tests/cases/user/TypeScript-WeChat-Starter/TypeScript-WeChat-Starter
92+
tests/cases/user/create-react-app/create-react-app
93+
tests/cases/user/fp-ts/fp-ts
94+
tests/cases/user/webpack/webpack
95+
tests/cases/user/puppeteer/puppeteer
96+
tests/cases/user/axios-src/axios-src
97+
tests/cases/user/prettier/prettier
98+
.eslintcache
99+
.expo
100+
build
101+
**/.env
102+
103+
# Nuxt dev/build outputs
104+
.output
105+
.data
106+
.nuxt
107+
.nitro
108+
.cache
109+
dist
110+
111+
# React Native
112+
113+
*.pbxuser
114+
!default.pbxuser
115+
*.mode1v3
116+
!default.mode1v3
117+
*.mode2v3
118+
!default.mode2v3
119+
*.perspectivev3
120+
!default.perspectivev3
121+
xcuserdata
122+
*.xccheckout
123+
*.moved-aside
124+
DerivedData
125+
*.hmap
126+
*.ipa
127+
*.xcuserstate
128+
**/.xcode.env.local
129+
.idea
130+
.gradle
131+
local.properties
132+
*.iml
133+
*.hprof
134+
.cxx/
135+
*.keystore
136+
!debug.keystore
137+
npm-debug.log
138+
yarn-error.log
139+
/vendor/bundle/
140+
*.jsbundle
141+
.metro-health-check*
142+
/coverage
143+
144+
.yarn/*
145+
!.yarn/patches
146+
!.yarn/plugins
147+
!.yarn/releases
148+
!.yarn/sdks
149+
!.yarn/versions
150+
.DS_Store
151+
build/
152+
Pods/
153+
.vscode/

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2022 Torus Labs Private Limited
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

README.md

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
# Web3Auth Mobile SDK Examples
2+
3+
[Web3Auth](https://web3auth.io) is a pluggable auth infrastructure for Web3 wallets and applications. This repository contains examples demonstrating the integration of Web3Auth's plug-and-play SDKs across various mobile platforms.
4+
5+
## 🌟 Key Features
6+
7+
- **Plug-and-Play Integration**: Ready-to-use SDKs for iOS, Android, React Native, and Flutter
8+
- **Social Logins**: Support for multiple authentication providers (Google, Facebook, Twitter, etc.)
9+
- **Blockchain Support**: Examples for various blockchain integrations (EVM, Solana, etc.)
10+
- **Custom Authentication**: Examples showing custom auth provider integration
11+
- **Aggregate Verifiers**: Advanced examples demonstrating multi-provider authentication
12+
13+
## 📱 Platform Examples
14+
15+
### React Native
16+
- [Quick Start Example](./react-native/rn-bare-quick-start): Basic integration with EVM chains
17+
- [Auth0 Example](./react-native/rn-bare-auth0-example): Custom authentication with Auth0
18+
- [Firebase Example](./react-native/rn-bare-firebase-example): Integration with Firebase authentication
19+
- [Solana Example](./react-native/rn-bare-solana-example): Integration with Solana blockchain
20+
- [Aggregate Verifier Example](./react-native/rn-bare-aggregate-verifier-example): Multi-provider authentication
21+
- [Expo Example](./react-native/rn-expo-example): Integration in Expo framework
22+
23+
### iOS
24+
- [Quick Start Example](./ios/ios-quick-start): Basic integration with EVM chains
25+
- [Auth0 Example](./ios/ios-auth0-example): Custom authentication with Auth0
26+
- [Firebase Example](./ios/ios-firebase-example): Integration with Firebase authentication
27+
- [Solana Example](./ios/ios-solana-example): Integration with Solana blockchain
28+
- [Aptos Example](./ios/ios-aptos-example): Integration with Aptos blockchain
29+
- [Aggregate Verifier Example](./ios/ios-aggregate-verifier-example): Multi-provider authentication
30+
- [Playground](./ios/ios-playground): Advanced features and configurations
31+
32+
### Flutter
33+
- [Quick Start Example](./flutter/flutter-quick-start): Basic integration with EVM chains
34+
- [Auth0 Example](./flutter/flutter-auth0-example): Custom authentication with Auth0
35+
- [Firebase Example](./flutter/flutter-firebase-example): Integration with Firebase authentication
36+
- [Aggregate Verifier Example](./flutter/flutter-aggregate-verifier-example): Multi-provider authentication
37+
38+
### Android
39+
- [Quick Start Example](./android/android-quick-start): Basic integration with EVM chains
40+
- [Auth0 Example](./android/android-auth0-example): Custom authentication with Auth0
41+
- [Firebase Example](./android/android-firebase-example): Integration with Firebase authentication
42+
- [Aggregate Verifier Example](./android/android-aggregate-verifier-example): Multi-provider authentication
43+
44+
## 🚀 Getting Started
45+
46+
Each example contains its own README with specific setup instructions. Generally, you'll need to:
47+
48+
1. Clone this repository
49+
2. Choose your platform and example
50+
3. Follow the example-specific README instructions
51+
4. Get your Web3Auth Client ID from the [Web3Auth Dashboard](https://dashboard.web3auth.io)
52+
5. Configure the example with your Client ID and run it
53+
54+
## 📚 Documentation
55+
56+
- [Web3Auth Documentation](https://web3auth.io/docs)
57+
- [Integration Builder](https://web3auth.io/docs/integration-builder)
58+
- Platform-specific guides:
59+
- [iOS Guide](https://web3auth.io/docs/sdk/pnp/ios)
60+
- [Android Guide](https://web3auth.io/docs/sdk/pnp/android)
61+
- [React Native Guide](https://web3auth.io/docs/sdk/pnp/react-native)
62+
- [Flutter Guide](https://web3auth.io/docs/sdk/pnp/flutter)
63+
64+
## 🤝 Support
65+
66+
- [Join our Discord](https://discord.gg/web3auth)
67+
- [Visit our Website](https://web3auth.io)
68+
- [Follow us on Twitter](https://twitter.com/web3auth)
69+
- [Submit an Issue](https://github.com/Web3Auth/web3auth-mobile-examples/issues)
70+
71+
## 📄 License
72+
73+
This project is licensed under the MIT License - see the [LICENSE](./LICENSE) file for details.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
BUNDLE_PATH: "vendor/bundle"
2+
BUNDLE_FORCE_RUBY_PLATFORM: 1
Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
# OSX
2+
#
3+
.DS_Store
4+
5+
# Xcode
6+
#
7+
build/
8+
*.pbxuser
9+
!default.pbxuser
10+
*.mode1v3
11+
!default.mode1v3
12+
*.mode2v3
13+
!default.mode2v3
14+
*.perspectivev3
15+
!default.perspectivev3
16+
xcuserdata
17+
*.xccheckout
18+
*.moved-aside
19+
DerivedData
20+
*.hmap
21+
*.ipa
22+
*.xcuserstate
23+
**/.xcode.env.local
24+
25+
# Android/IntelliJ
26+
#
27+
build/
28+
.idea
29+
.gradle
30+
local.properties
31+
*.iml
32+
*.hprof
33+
.cxx/
34+
*.keystore
35+
!debug.keystore
36+
37+
# node.js
38+
#
39+
node_modules/
40+
npm-debug.log
41+
yarn-error.log
42+
43+
# fastlane
44+
#
45+
# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the
46+
# screenshots whenever they are needed.
47+
# For more information about the recommended setup visit:
48+
# https://docs.fastlane.tools/best-practices/source-control/
49+
50+
**/fastlane/report.xml
51+
**/fastlane/Preview.html
52+
**/fastlane/screenshots
53+
**/fastlane/test_output
54+
55+
# Bundle artifact
56+
*.jsbundle
57+
58+
# Ruby / CocoaPods
59+
**/Pods/
60+
/vendor/bundle/
61+
62+
# Temporary files created by Metro to check the health of the file watcher
63+
.metro-health-check*
64+
65+
# testing
66+
/coverage
67+
68+
# Yarn
69+
.yarn/*
70+
!.yarn/patches
71+
!.yarn/plugins
72+
!.yarn/releases
73+
!.yarn/sdks
74+
!.yarn/versions
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
{}

0 commit comments

Comments
 (0)