Development/ReactNative

[study] react-native 프로젝트를 파이어베이스와 연동하기

mefd 2024. 1. 4. 16:20
728x90

https://firebase.google.com/?hl=ko

 

Firebase | Google’s Mobile and Web App Development Platform

개발자가 사용자가 좋아할 만한 앱과 게임을 빌드하도록 지원하는 Google의 모바일 및 웹 앱 개발 플랫폼인 Firebase에 대해 알아보세요.

firebase.google.com

1. 시작하기 눌러 프로젝트를 생성한다.

 

2. ios / android 앱 연동하기

- ios :

Apple번들ID --> xcode 최상단 프로젝트 폴더 클릭 > Singnign&Capabilities탭 >> IOS 박스에 있는 BundleIdentifier를 복사하여 붙여넣는다. (분홍색박스)

구성파일 다운로드하여 드래그하여 붙여넣는다(빨간색박스) 

 

-안드로이드 :

안드로이드번들ID --> vscode 프로젝트 폴더 내 android 폴더 >> app >> build.gradle 파일에 applicationId 복사하여 붙여넣는다 (분홍색박스)

구성파일 다운로드하여 드래그하여 app 폴더 안에 붙여넣는다 (빨간색 박스)

3. react-native-firebase

https://rnfirebase.io/

 

React Native Firebase | React Native Firebase

Welcome to React Native Firebase! To get started, you must first setup a Firebase project and install the "app" module. React Native Firebase is the officially recommended collection of packages that brings React Native support for all Firebase services on

rnfirebase.io

시작하기 탭 >>  설치방법 보고 따라하기

 

4. 파이어베이스 >빌드 > Realtime Database >> 테스트모드로 시작

 

5. https://rnfirebase.io/database/usage

 

Realtime Database | React Native Firebase

Copyright © 2017-2020 Invertase Limited. Except as otherwise noted, the content of this page is licensed under the Creative Commons Attribution 3.0 License, and code samples are licensed under the Apache 2.0 License. Some partial documentation, under the

rnfirebase.io

설치방법 보고 따라하기

728x90