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:
parent
10210c55df
commit
2bebdee70f
|
@ -28,7 +28,7 @@ or npm:
|
||||||
npm install --save @react-native-community/blur
|
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
|
react-native link @react-native-community/blur
|
||||||
|
@ -39,6 +39,10 @@ react-native link @react-native-community/blur
|
||||||
```
|
```
|
||||||
npx pod-install
|
npx pod-install
|
||||||
```
|
```
|
||||||
|
Or, if you already have installed [Cocoapods](https://cocoapods.org/) on your system:
|
||||||
|
```
|
||||||
|
cd ios && pod install
|
||||||
|
```
|
||||||
|
|
||||||
4. (Android only, optional)
|
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:
|
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 */}
|
{/* in terms of positioning and zIndex-ing everything before the BlurView will be blurred */}
|
||||||
<BlurView
|
<BlurView
|
||||||
style={styles.absolute}
|
style={styles.absolute}
|
||||||
viewRef={this.state.viewRef}
|
|
||||||
blurType="light"
|
blurType="light"
|
||||||
blurAmount={10}
|
blurAmount={10}
|
||||||
reducedTransparencyFallbackColor="white"
|
reducedTransparencyFallbackColor="white"
|
||||||
|
|
Loading…
Reference in New Issue