https://github.com/wmcmahan/react-native-calendar-events
wmcmahan/react-native-calendar-events
๐ React Native Module for iOS and Android Calendar Events - wmcmahan/react-native-calendar-events
github.com
react-native link react-native-calendar-events
ํ์
https://github.com/wmcmahan/react-native-calendar-events/wiki/iOS-setup
info.plist ์ถ๊ฐํ๋ ๊ถํ ์์ฒญํ ๋ ํฌ๋์ ์ฌ๋ผ์ง.
๊ทธ๋ฅ.... ์๋์.... ์ปค์คํ ์ด์๋๊ฑฐ๋ค.
yarn add react-native-push-notification
https://www.npmjs.com/package/react-native-push-notification
react-native-push-notification
React Native Local and Remote Notifications
www.npmjs.com
์ค์น ์ญ ๋ฐ๋ผ๊ฐ๊ณ , firebase๋ remote๋ฅผ ์์ธ๊ฑฐ๋๊น firebase ๋์ค๋ ๋ถ๋ถ์ ๋ค ์คํตํ์.
์๋, ios ๋ชจ๋ local noti ์ค๋๊ฑฐ ํ์ธ!
๊ทผ๋ฐ ์๋๋ ์์ด๋ ๊ฒ ์๋์ด ๊ณ์ ์ค์ง?
์ด์ nfc ์ค์บ ์ ์๋์ด ๊บผ์ง๋๋ก ํด๋ณด์.
์ผ๋จ nfc ์ค์บํ๋ ๋ผ์ด๋ธ๋ฌ๋ฆฌ๋ฅผ ์ฐพ์๋ด์ผ์ง
https://www.npmjs.com/package/react-native-nfc-manager
react-native-nfc-manager
A NFC module for react native.
www.npmjs.com
https://coding-dahee.tistory.com/127
[React Native] NFC ์ค์บ
https://www.npmjs.com/package/react-native-nfc-manager react-native-nfc-manager A NFC module for react native. www.npmjs.com
coding-dahee.tistory.com
์ฐธ๊ณ
https://github.com/hansemannn/iOS-NFC-Example
์์ Provisioning Profile entitled with the NFC Tag Reading capability: ๋ค์๋ถํฐ๋ ์ํจ
[ํธ์ ์๋ฆผ ์ฌ์ฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ]
https://github.com/zo0r/react-native-push-notification
[๋ฒ๊ทธ ํด๊ฒฐ]
https://coding-dahee.tistory.com/131
[React Native] react-native-push-notification local notification ์๋๋ก์ด๋ ์๋์ด ๋ฉ์ถ์ง ์์ ๋
- ์ฌ์ฉ ๋ผ์ด๋ธ๋ฌ๋ฆฌ https://github.com/zo0r/react-native-push-notification - ํ๊ฒฝ RN 0.61.5 - ๋ฒ๊ทธ ์๋๋ก์ด๋ ์ค์น ๋ฐ๋ผํ๊ณ , local notification์ ์คํ์์ผ ๋ดค๋๋ฐ, ์๋ฆผ์ด ๋ฉ์ถ์ง ์๊ณ ๊ณ์ ์๋ค. Android..
coding-dahee.tistory.com
[floating button]
https://github.com/mastermoo/react-native-action-button
mastermoo/react-native-action-button
customizable multi-action-button component for react-native - mastermoo/react-native-action-button
github.com
docker ๊น๊ธฐ
๋ก๊ทธ์ธ
daheeahn
deg9810@gmail.com
์ํ๋ฐ์์ ๋ก๊ทธ์ธ
yarn
npx prisma2 init
prisma/.env ๋ถ์ฌ๋ฃ๊ธฐ
# Environment variables declared in this file are automatically made available to Prisma.
# See the documentation for more detail: https://pris.ly/d/prisma-schema#using-environment-variables
# Prisma supports the native connection string format for PostgreSQL, MySQL and SQLite.
# See the documentation for all the connection string options: https://pris.ly/d/connection-strings
DATABASE_URL="postgresql://testuser:testpasswd@localhost:5432/testdb?schema=public"
prisma2/schema.prisma ๋ถ์ฌ๋ฃ๊ธฐ
// This is your Prisma schema file,
// learn more about it in the docs: https://pris.ly/d/prisma-schema
datasource db {
provider = "postgresql"
url = env("DATABASE_URL")
}
generator client {
provider = "prisma-client-js"
}
enum Sex {
male female
}
enum Provider {
kakao
}
model User {
id Int @id @default(autoincrement())
nickname String
birthdate DateTime
sex Sex
userPushId String?
userAccount UserAccount
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
@@unique([userPushId, userAccount])
}
model UserAccount {
id Int @id @default(autoincrement())
snsId String @unique
provider Provider
user User?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model Nfc {
id Int @id @default(autoincrement())
value String @unique
userNfc User_nfc[]
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model Routine {
id Int @id @default(autoincrement())
name String
user User
userNfcRoutine User_nfc_routine
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model Alarm {
id Int @id @default(autoincrement())
name String
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model Result {
id Int @id @default(autoincrement())
date DateTime
userNfcUser User_nfc_routine
resultTimestamp Result_timestamp?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model Result_timestamp {
id Int @id @default(autoincrement())
firstTagging DateTime
lastTagging DateTime
result Result
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model User_nfc {
id Int @id @default(autoincrement())
description String
user User
nfc Nfc
nfcRoutine User_nfc_routine?
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model User_nfc_routine {
id Int @id @default(autoincrement())
daysArray String
fromTime DateTime
endTime DateTime
userNfc User_nfc
result Result[]
routine Routine
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
model User_nfc_alaram {
id Int @id @default(autoincrement())
createdAt DateTime @default(now())
updatedAt DateTime @updatedAt
deletedAt DateTime?
}
๊ทธ๋ฐ๋ฐ ์คํค๋ง ๋ฐ๋๋๋ง๋ค ํ๋ฐ์์ผํ๋๊น ์ด๊ฑฐ ๋ถ๋ถ์ prisma ํด๋ ๋ถ๋ถ์ ๋ค์ ์์๋ณธ๋!
yarn build
docker-compose up -d // db์๋ฒ ๋์์ค.
npx prisma2 migrate save --name 'name' --experimental
npx prisma2 migrate up --experimental
yarn dev
accout ๋จผ์ ์์ฑํด์ผํจ
mutation {
createOneUserAccount(data:{snsId: "edit here", provider:kakao}) {
id
}
}
mutation {
createOneUser(
data: { nickname: "daheeahn", birthdate: "2017-11-25T23:55:35.116Z", sex: female, userAccount:{connect:{id: 1}} }
) {
id
nickname
}
}
studio graphql-yoga๋ก ์จ๋ณด๊ธฐ
์ด์ ์ฌ๋ ค๋จ๋ค
https://github.com/zo0r/react-native-push-notification/issues/1342
how not to disappear push notification when gesture sideways · Issue #1342 · zo0r/react-native-push-notification
If I click the push notification and it does not disappear, I can control it with autoCancel. But how do I make sure that I don't disappear even if I gesture sideways? Is there a function like ...
github.com
nfc๋ฅผ ํ๊ทธํ๋ฉด ์ฑ์ ์คํ์์ผ์ผ ํ๋ค!
https://coding-dahee.tistory.com/144
[Android/React Native] NFC ํ๊ทธ ์ ์๋๋ก์ด๋ ์ฑ/์ดํ ์คํ์ํค๋ ๋ฐฉ๋ฒ
๊ฒฐ๊ณผ์ ์ผ๋ก๋ https://github.com/observ3r/nfc-ndef-react-native ์ ์๋ android ์ฝ๋๋ฅผ ์ฌ์ฉํ๋๋ ๋๋ค! (๋ผ์ด๋ธ๋ฌ๋ฆฌ ์ค์น ์์ด) 1) android/app/src/main/AndroidManifest.xml ์ ๋ค์ ๊ถํ ์ถ๊ฐ <uses-perm..< p=""> </uses-perm..<>
coding-dahee.tistory.com
์ฑ๊ณต
- iOS ์๋
์ฑ์ด ์์ ๊บผ์ก์ ๋ ์๋์ 1๋ฒ๋ฐ์ ๋ชป์ธ๋ฆฐ๋ค. ์ฑ์ ์ผ๊ธฐ ์ ๊น์ง local push๋ฅผ ๋ฐ๋ณต์ ์ผ๋ก ๋ณด๋ด๋ ๋ฐฉ๋ฒ๋ฐ์ ์๋๋ฐ, ์ด๋ป๊ฒ ํ ๊น?
๋ฐฑ๊ทธ๋ผ์ด๋์ ์์ ๋ ์ฑ์ ์คํํ๋ ๊ฒ์ด ๊ฐ๋ฅํ ๊ฒ ๊ฐ์.
- ๋ฃจํด ์๋ ๋ง๊ณ ๊ทธ๋ฅ ์๋๋ถํฐ ํ์!
** ๋ก์ปฌ ์คํ ๋ฆฌ์ง์ ์ ์ฅ๋๋๊ฑธ๋ก!
1. ์ฑ ์์ ์ข ๋ฃ ์ ์๋
- ๋ฐ๋ณต์ ์ผ๋ก ๋ณด๋ผ๊ฑด๊ฐ, ๊ทธ๋ฌ๋ฉด ์๋์ด ์ฌ๋ฌ๊ฐ ์๋ฆผ๋ฐ์ ๋จ๋๊ฒ ๋๋ฉด ์๋จ
- ์๋๋ฉด ๊ทธ๋ฅ ํ๋ฉด๋จ.
2. ๋ฐฑ๊ทธ๋ผ์ด๋ ์๋
3. ํฌ๊ทธ๋ผ์ด๋ ์๋
-
์๋์ด ์์ผ
- ์บ๋ฆฐ๋๋ ์ง์ ๋ง๋ค์.
- ์บ๋ฆฐ๋ ๋ณต์ฌ ๋ฅผ ์ํด hover๋ฅผ ์์๋ดค๋๋ฐ
https://codesandbox.io/s/o9q8vy70l5
์ด๋ฐ ๊ณณ์ด ์๊ธด ํ์ง๋ง ์... ์ผ๋จ ํฌ๊ธฐ! ๋์ค์ ์์๋ณด์!
3/27 ์ผ
- LongPressGestureHandler ์ด์ฉใ ํ๋ฉด ๊พน ๋๋ ์ ๋๋ง ํ์ฑํ๋๋ ์ด๋ค๊ฑธ ํ ์๋ ์๊ฒ ๋ค!
renderLeft์ฒ๋ผ ์๋ก ์ฌ๋ฆฌ๋ ์ ์ค์ฒ๋ ์๋?
4/16 ๋ชฉ
identityToken ์ ํด๋ ํ๋ฉด user๊ฐ ๋์ค๋๋ฐ ๊ทธ๊ฑฐ ๊ฐ์ง๊ณ ์๋ฒ์์ db์ ์๋์ง ํ์ธํ๊ณ jwtํ ํฐ ๋ง๋ค์ด์ค.
๊ทธ jwt ํ ํฐ ๊ฐ์ง๊ณ ๋ด๊ฐ ์์ฒญ๋ณด๋ผ ๋ ๋ง๋ค ํค๋์ ๋ณด๋ด์ฃผ๋ฉด ๋จ.
kakao๋ api๊ฐ ๋ฐ๋ก ์์ด์
accessToken๊ฐ์ง๊ณ api ๋๋ฆฌ๋ฉด ์ ์ ์ ๋ณด ์ค๋ค.
v2/user/me
ํ๋ฉด
์ ์ ์ ๋ณด ์ซ ๋์ด
๊ตฌ๊ธ๋ token์ ์ฃผ๋๋ฐ ๊ทธ๊ฑฐ ํด๋ ํ๋ค์์ ์ด๋ฉ์ผ์ด unique ๊ฐ์ด๋๊น ๊ทธ๊ฑธ๋ก db์ ์๋์ง ์ฐพ๊ณ jwt token ๋ง๋ค์ด์ ์ค๋ค.
'Archive' ์นดํ ๊ณ ๋ฆฌ์ ๋ค๋ฅธ ๊ธ
๋ค๋์ ์ฝ - ๋ด์ ์ธํ ์ด์ธ์ฌ๊ฑด (์คํฌ์ฃผ์) (0) | 2020.10.24 |
---|---|
2020๋ ๊ฐ๋ฐ ์ผ์ง (0) | 2020.03.05 |
[ํ์ด์/IoT] ์ฐ๊ฒฐ (0) | 2019.06.22 |
[์๊ตฌ ํ์์์ด] close (not far) / Similar (0) | 2019.01.28 |
[์๊ตฌ ํ์์์ด] โ we went sightseeing (0) | 2019.01.27 |