Skip to content

Commit

Permalink
Merge pull request #6 from Intosoft/feat/web
Browse files Browse the repository at this point in the history
feat: added rounded-horiztonal body path style
  • Loading branch information
sakul-budhathoki authored Mar 2, 2024
2 parents d119652 + ae758de commit 90ccdcf
Show file tree
Hide file tree
Showing 26 changed files with 1,289 additions and 1,013 deletions.
31 changes: 31 additions & 0 deletions .github/workflows/web.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Web

on:
push:
branches:
- main
pull_request:

defaults:
run:
working-directory: ./web

jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- uses: actions/setup-node@v3
with:
cache: "yarn"
node-version: 18

- name: Install node modules (Root)
run: cd ../ && yarn

- name: Install node modules
run: yarn

- name: Build
run: yarn build
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ Intosoft QR Code is a fully customizable open source QR code generator tool.
- **Versatile and Customizable:** Fully color, style, content customization
- **Seamless Integration:** Integrate Intosoft QRcode seamlessly into your existing tech stack, whether you're working with React, React Native, NodeJS, Vue.js, Angular, or pure JavaScript.

[Start cutomizing](https://qrcode.intosoft.com)
[Start customizing](https://qrcode.intosoft.com)

## Installation
NPM
Expand Down
32 changes: 31 additions & 1 deletion examples/expo-app/App.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,38 @@ import { StatusBar } from "expo-status-bar";
import { StyleSheet, Text, View } from "react-native";
import { generateSVGString } from "@qrcode";
import { SvgFromXml } from "react-native-svg";
import logo from "./logo.svg";

const svgString = generateSVGString();
const config = {
length: 200,
value: "https://intosoft.com",
logo: {
url: "data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAxMjIuMSAxOTQuNyI+PGRlZnM+PHN0eWxlPi5jbHMtMXtmaWxsOiM0MmM5ODU7fS5jbHMtMntmaWxsOiM2NmJmODM7fTwvc3R5bGU+PC9kZWZzPjxnIGlkPSJMYXllcl8yIiBkYXRhLW5hbWU9IkxheWVyIDIiPjxnIGlkPSJMYXllcl8xLTIiIGRhdGEtbmFtZT0iTGF5ZXIgMSI+PHBhdGggY2xhc3M9ImNscy0xIiBkPSJNOTQuMzYsNzUuNTljMTguMzksMTkuNzUsMTguNzYsNDkuMjguODIsNjZsLTUuMjQsNC44Ny03LjQ5LDctMy4xNSwzLjEyTDQwLjQ3LDE5Mi44N2E2Ljc3LDYuNzcsMCwwLDEtOS41Ny0uMzFMMCwxNTkuNTVsMTguNi0xNy40MWEyMi43OCwyMi43OCwwLDAsMSwxLjU5LTEuNjhsLjE1LS4xNCw4LjE3LTcuNjIsOS4wOS04LjQ3LjkyLS44NywxMS4yNy0xMC41MWExOSwxOSwwLDAsMCwxMi40NSwzLjYzLDE5LjE2LDE5LjE2LDAsMSwwLTE3LjQ0LTlMMzEuMTQsMTIwLjI1QTEuODEsMS44MSwwLDAsMSwyOC42LDEyMGwtLjg2LS45MkM5LjM1LDk5LjM3LDksNjkuODQsMjYuOTIsNTMuMTZMMzkuNjUsNDEuMzFsMzgtMzUuNzZMNzIsMTAuODhsOS42NC05LjA2YTYuNzMsNi43MywwLDAsMSw5LjUyLjMxbDMwLjkyLDMzTDEwMy41LDUyLjU3YTIwLjg1LDIwLjg1LDAsMCwxLTEuNTksMS42OGwtLjE1LjE0TDkzLjYsNjIsODcuMDcsNjguMWw2LjE1LDYuMzJaIi8+PHBhdGggY2xhc3M9ImNscy0yIiBkPSJNOTQuMzYsNzUuNTlsLTEuMTQtMS4xN2EyLjI2LDIuMjYsMCwwLDEsLjI5LjI1WiIvPjwvZz48L2c+PC9zdmc+",
height: 83,
width: 96,
},
shapes: {
eyeFrame: "circle",
body: "circle",
eyeball: "circle",
},
colors: {
background: "white",
body: "linear-gradient(90deg, rgba(62,35,146,1) 3%, rgba(0,212,255,1) 100%)",
eyeFrame: {
topLeft: "rgb(146, 5, 225)",
topRight: "rgb(146, 5, 225)",
bottomLeft: "rgb(146, 5, 225)",
},
eyeball: {
topLeft: "rgb(158, 118, 178)",
topRight: "rgb(158, 118, 178)",
bottomLeft: "rgb(158, 118, 178)",
},
},
};

const svgString = generateSVGString(config);

export default function App() {
return (
Expand Down
1 change: 1 addition & 0 deletions examples/expo-app/logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions examples/expo-app/metro.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,11 @@ module.exports = (() => {

const { transformer, resolver } = config;
config.watchFolders = [path.resolve(__dirname, "../../src")];

config.transformer = {
...config.transformer,
babelTransformerPath: require.resolve("react-native-svg-transformer"),
};
config.resolver = {
...resolver,
extraNodeModules: new Proxy(extraNodeModules, {
Expand Down
3 changes: 2 additions & 1 deletion examples/expo-app/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,8 @@
"qrcode": "^1.5.3",
"react": "18.2.0",
"react-native": "0.73.4",
"react-native-svg": "^15.0.0"
"react-native-svg": "^15.0.0",
"react-native-svg-transformer": "^1.3.0"
},
"devDependencies": {
"@babel/core": "^7.20.0",
Expand Down
Loading

0 comments on commit 90ccdcf

Please sign in to comment.