Skip to content

Commit 9caca46

Browse files
committed
docs: add platform badge, fix ContainerComponent type
1 parent 08cc87d commit 9caca46

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
[![npm](https://img.shields.io/npm/v/react-native-notifier)](https://www.npmjs.com/package/react-native-notifier)
44
[![npm bundle size](https://img.shields.io/bundlephobia/min/react-native-notifier)](https://bundlephobia.com/result?p=react-native-notifier)
5+
![platforms: ios, android, web](https://img.shields.io/badge/platform-ios%2C%20android%2C%20web-blue)
56
[![license MIT](https://img.shields.io/badge/license-MIT-brightgreen)](https://github.com/seniv/react-native-notifier/blob/master/LICENSE)
67

78
Fast and simple in-app notifications for React Native
@@ -162,7 +163,7 @@ Name | Type | Default | Description
162163
title | String | null | Title of notification.
163164
description | String | null | Description of notification.
164165
componentProps.imageSource | Object | null | Passed to `<Image />` as `source` param.
165-
componentProps.ContainerComponent | Object | SafeAreaView | A container of the component. Set it in case you use different SafeAreaView than the standard
166+
componentProps.ContainerComponent | Component| SafeAreaView | A container of the component. Set it in case you use different SafeAreaView than the standard
166167
167168
### `NotifierComponents.Alert`
168169
@@ -190,7 +191,7 @@ description | String | null | Description of not
190191
componentProps.alertType | String | 'success' | Background color will be changed depending on the type. Available values: `error`(red), `success`(green), `warn`(orange) and `info`(blue).
191192
componentProps.backgroundColor | String | null | While the background of the alert depends on `alertType`, you can also set the other color you want.
192193
componentProps.textColor | String | 'white' | Color of `title` and `description`.
193-
componentProps.ContainerComponent | Object | SafeAreaView | A container of the component. Set it in case you use different SafeAreaView than the standard
194+
componentProps.ContainerComponent | Component| SafeAreaView | A container of the component. Set it in case you use different SafeAreaView than the standard
194195
195196
## Custom Component
196197

0 commit comments

Comments
 (0)