Skip to content

Commit d2f6f6a

Browse files
committed
README is updated
1 parent 8c229ed commit d2f6f6a

File tree

2 files changed

+7
-4
lines changed

2 files changed

+7
-4
lines changed

README.md

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,12 @@ import WhatsNew from "react-native-whatsnew-kit";
4444
## Basic Usage
4545

4646
```jsx
47-
<WhatsNew data={data} isVisible={isVisible} ImageComponent={FastImage} onBackdropPress={() => setIsVisible(false)} />
47+
<WhatsNew
48+
data={data}
49+
fullScreen={false}
50+
isVisible={isVisible}
51+
onBackdropPress={() => setIsVisible(false)}
52+
/>
4853
```
4954

5055
## Data Array Format

example/App.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,7 @@
11
import React, { useState } from "react";
2-
import { StatusBar, Dimensions, SafeAreaView } from "react-native";
2+
import { StatusBar, SafeAreaView } from "react-native";
33
import WhatsNew from "./lib/src/WhatsNewKit";
44

5-
const { width, height } = Dimensions.get("window");
6-
75
const App = () => {
86
const [isVisible, setIsVisible] = useState(true);
97
return (

0 commit comments

Comments
 (0)