/** * rokt-embedded-view.js * * Licensed under the Rokt Software Development Kit (SDK) Terms of Use * Version 2.0 (the "License"); * * You may not use this file except in compliance with the License. * * You may obtain a copy of the License at https://rokt.com/sdk-license-2-0/ */ import React, { Component } from "react"; /** * PUBLIC API: Props that users of RoktEmbeddedView can set */ export interface RoktEmbeddedViewProps { placeholderName: string; } /** * INTERNAL: State managed by the component to handle native events */ export interface RoktEmbeddedViewState { height: number; placeholderName: string; marginTop: number; marginRight: number; marginLeft: number; marginBottom: number; } /** * RoktEmbeddedView is a wrapper component for the native RoktNativeWidget. * It handles the native events internally and provides a simpler API for React Native apps. * * This component only exposes the placeholderName prop to users, hiding all the internal complexity. */ export declare class RoktEmbeddedView extends Component { constructor(props: RoktEmbeddedViewProps); /** * Handles the height changed event from the native component * This is an internal implementation detail not exposed to users */ private handleHeightChanged; /** * Handles the margin changed event from the native component * This is an internal implementation detail not exposed to users */ private handleMarginChanged; render(): React.JSX.Element | null; } export default RoktEmbeddedView;