Cleanup and update README.md

* Clarify projects should not link the module with autolinking
* Suggest the "standard" way of installing pods with `pod install`
* Remove the obsolete `viewRef` prop from the example
This commit is contained in:
Thomas P 2020-05-18 10:19:29 +02:00 committed by GitHub
parent 10210c55df
commit 2bebdee70f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 5 additions and 2 deletions

View File

@ -28,7 +28,7 @@ or npm:
npm install --save @react-native-community/blur
```
2. Link your native dependencies:
2. **React-Native 0.59 and below only**: Link your native dependencies:
```
react-native link @react-native-community/blur
@ -39,6 +39,10 @@ react-native link @react-native-community/blur
```
npx pod-install
```
Or, if you already have installed [Cocoapods](https://cocoapods.org/) on your system:
```
cd ios && pod install
```
4. (Android only, optional)
If you've defined _[project-wide properties](https://developer.android.com/studio/build/gradle-tips.html)_ (**recommended**) in your root `build.gradle`, this library will detect the presence of the following properties:
@ -120,7 +124,6 @@ export default class Menu extends Component {
{/* in terms of positioning and zIndex-ing everything before the BlurView will be blurred */}
<BlurView
style={styles.absolute}
viewRef={this.state.viewRef}
blurType="light"
blurAmount={10}
reducedTransparencyFallbackColor="white"