Coder Social home page Coder Social logo

muin_frontend's People

Contributors

2kyung19 avatar riyenas0925 avatar

Forkers

2kyung19

muin_frontend's Issues

QR.tsx 동작 방식 질문

your code : https://github.com/mu-in/muin_FrontEnd/blob/main/components/QR.tsx

import React, { ReactElement, useState, useEffect } from 'react';
import QRCode from 'react-native-qrcode-svg';
import RNTotp from 'react-native-totp';

function QR(): ReactElement {
	const [token, setToken] = useState('-');

	useEffect(() => {
		// eslint-disable-next-line @typescript-eslint/no-unused-vars
		const generate = setInterval(() => {
			RNTotp.generateOTP(
				{
					base32String: 'a225f3b3-6ba2-4da1-b14a-1bb691cabf79', //<--------- HERE
					digits: 8,
					period: 5,
				},
				(code) => {
					setToken(code);
				}
			);
		}, 5000);
	}, [token]);

	return <QRCode value={token} />;
}

export default QR;

  • base32String : 고정된 값인가? 어떤 값을 넣은 것인가? 저런 타입의 String을 base32 String이라 하는가?
  • digits: 무엇인가?
  • period: 5sec의 유효기간인가?

feature : app layout

  • home -> auth manager
  • store -> store info
  • manage -> manage home -> manage stock / transaction history

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.