@viafoura/sdk-react-native
v0.1.11
Published
Viafoura React Native SDK
Downloads
782
Readme
@viafoura/sdk-react-native
Basic install and usage.
Install
npm install @viafoura/sdk-react-nativeiOS:
npx pod-installUsage
Initialize the SDK once at app startup (e.g., in App.tsx or a bootstrap module):
import Viafoura from '@viafoura/sdk-react-native';
await Viafoura.initialize('SITE_UUID', 'your.domain.com', true);Then render the views you need:
import { PreviewCommentsView } from '@viafoura/sdk-react-native';
<PreviewCommentsView
containerId="YOUR_CONTAINER_ID"
articleUrl="https://example.com/article"
articleTitle="Title"
articleThumbnailUrl="https://example.com/thumb.jpg"
/>ProfileView and NewCommentView are Android-only. On iOS they render as empty views.
