Skip to content

Instantly share code, notes, and snippets.

View marudhupandiyang's full-sized avatar
🎯
Focusing

Panther marudhupandiyang

🎯
Focusing
View GitHub Profile
@marudhupandiyang
marudhupandiyang / wrappedBlurView.jsx
Last active December 10, 2019 19:58
Wrapper over blur view to make the implementation consistent in both android and ios. https://medium.com/@marudhupandiyang/blurring-views-inreact-native-7d20144c8d7c
import React, { Component } from 'react';
import { findNodeHandle, Platform, Dimensions } from 'react-native';
import { BlurView } from 'react-native-blur';
const { width: viewportWidth, height: viewportHeight } = Dimensions.get('window');
const isAndroid = Platform.OS === 'android';
class WrappedBlurView extends Component {
constructor(props) {
super(props);