The genuin-react-native SDK is designed to seamlessly integrate the features of the “Genuin” mobile application into your own React Native projects. Follow the instructions below to install and integrate the SDK into your application.
android/app/build.gradle
:
android/app/src/main/AndroidManifest.xml
:
android/app/src/main/res/values/styles.xml
:
android/app/proguard-rules.pro
, add the following lines:
lottie
animation for our loader. You can put your custom lottie animation loader with the name loader_mix.json
in the android/app/src/main/res/raw
folder. Make sure you use the same name as provided.android/app/src/main/AndroidManifest.xml
file:
android/app/build.gradle
file:
GenuinModuleObjCWrapper.h
GenuinModuleObjCWrapper.mm
YourApp-Bridging-Header.h
AppDelegate.swift
file:
Prerequisite step : Link
In AppDelegate.swift
:
AppDelegate.swift
file:
genuin-react-native
SDK into your application, follow these steps:
app.jsx
file, import the Feed
component from the genuin-react-native
SDK.API_KEY
. This key is essential for authenticating your application with the Genuin service.Feed
Component: Use the Feed component within your application, passing the API_KEY
as a prop. Below is an example of how to implement this:app.jsx
file might look:
apiKey
prop passed to the Feed component. Ensure your application is reloaded to apply the changes.
carouselRef.current?.pause()
and carouselRef.current?.resume()
for pause and resume video play in Carousel.standardWallRef.current?.pause()
and standardWallRef.current?.resume()
for pause and resume video play in StandardWall.feedRef.current?.pause()
and feedRef.current?.resume()
for pause and resume video play in Feed.homeFeedRef.current?.pause()
and homeFeedRef.current?.resume()
for pause and resume video play in HomeFeed.firebase_options.dart
in lib folder and add below details in that file.
genuin-react-native
SDK, please contact the Genuin support team or refer to the official documentation. The Genuin team is available to help you with any issues or questions you might have during the integration process.