Merge pull request #85 from siwananda/master

Create section to troubleshoot Native component for 'BlurView' does n…
This commit is contained in:
Alexey 2016-08-23 14:31:26 +02:00 committed by GitHub
commit 0c50185dcc
1 changed files with 22 additions and 0 deletions

View File

@ -122,5 +122,27 @@ It has the following props:
- `downsampleFactor` (Number)
- `overlayColor` (Color)
#### Troubleshooting
On older instances of react-native, BlurView package does not get added into the MainActivity/MainApplication classes where you would see `Warning: Native component for 'BlurView' does not exist` in RN YellowBox or console.
To rectify this, you can add the BlurViewPackage manually in MainActivity/MainApplication classes
```java
...
import com.cmcewen.blurview.BlurViewPackage;
...
public class MainApplication extends Application implements ReactApplication {
...
@Override
protected List<ReactPackage> getPackages() {
return Arrays.<ReactPackage>asList(
new MainReactPackage(),
new BlurViewPackage()
);
}
...
}
```
### Questions?
Feel free to contact me in [twitter](https://twitter.com/kureevalexey) or [create an issue](https://github.com/Kureev/react-native-blur/issues/new)