Skip to content

Commit

Permalink
Merge pull request #50 from mink-ang/master
Browse files Browse the repository at this point in the history
Fixed typings
  • Loading branch information
ammarahm-ed authored Jul 13, 2020
2 parents c95c84f + 4472ec7 commit 586d0a3
Showing 1 changed file with 13 additions and 13 deletions.
26 changes: 13 additions & 13 deletions index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ type NativeAdViewProps = {
*/

enableTestMode?: boolean;

children: React.ReactNode;
style?: ViewStyle;

/**
Expand Down Expand Up @@ -208,7 +208,7 @@ declare module "react-native-admob-native-ads" {

export default function NativeAdView(
props: NativeAdViewProps
): React.FunctionComponent;
): JSX.Element;


const MAX_AD_CONTENT_RATING:MAX_AD_CONTENT_RATING;
Expand Down Expand Up @@ -305,49 +305,49 @@ return: `boolean`
*
*/

export function AdBadge(props: NestedTextProps): React.FunctionComponent;
export function AdBadge(props: NestedTextProps): JSX.Element;

/**
* The title of the native ad recieved from server is renderd here.
* You dont need to pass any values to it. It will automatically get the title from
* context and load it.
* You should on style it as you want.
*/
export function HeadlineView(props: TextProps): React.FunctionComponent;
export function HeadlineView(props: TextProps): JSX.Element;

/**
* * The description of the native ad recieved from server is renderd here.
*/
export function TaglineView(props: TextProps): React.FunctionComponent;
export function TaglineView(props: TextProps): JSX.Element;

/**
* * The adveriser name of the native ad recieved from server is renderd here.
*/
export function AdvertiserView(props: TextProps): React.FunctionComponent;
export function AdvertiserView(props: TextProps): JSX.Element;
/**
* If the ad or service is paid,then this view can be used to show the price.
*/
export function PriceView(props: TextProps): React.FunctionComponent;
export function PriceView(props: TextProps): JSX.Element;

/**
* Many times, the ad recieved will be from the Google Playstore or AppStore for iOS.
* In that case, you can show the store name using this view.
*/
export function StoreView(props: TextProps): React.FunctionComponent;
export function StoreView(props: TextProps): JSX.Element;

/**
* If you want to explicitly show only Images and no video etc, use ImageView.
*/
export function ImageView(props: ImageProps): React.FunctionComponent;
export function ImageView(props: ImageProps): JSX.Element;
/**
* Icon/Logo of the adveriser shown inside this view
*/
export function IconView(props: ImageProps): React.FunctionComponent;
export function IconView(props: ImageProps): JSX.Element;

/**
* If the ad has images or video content. It will be loaded inside the MediaView.
*/
export function MediaView(props: SimpleViewProps): React.FunctionComponent;
export function MediaView(props: SimpleViewProps): JSX.Element;

/**
* A simple button to open the adveriser website or store page etc. It is a simple
Expand All @@ -357,13 +357,13 @@ return: `boolean`
*/
export function CallToActionView(
props: NestedTextProps
): React.FunctionComponent;
): JSX.Element;

/**
* A Star Rating View to show the star rating for the app ads that you might recieve from
* the server.
*/
export function StarRatingView(
props: StarRatingProps
): React.FunctionComponent;
): JSX.Element;
}

0 comments on commit 586d0a3

Please sign in to comment.