32 Commits

Author SHA1 Message Date
Parvesh Monu
1bb58aa0d1
Allow transparent blur-type for ios
Patch from https://github.com/Kureev/react-native-blur/pull/513
2023-01-16 03:01:34 +05:30
Gianluca Spada
2fcc595bc3 feat: Add Fabric support (#493)
* build(deps): update react-native

* feat: codegen setup for BlurView component

* feat: add basic Fabric component for BlurView (iOS)

* feat(iOS): implement updateProps Fabric method

* feat(iOS): migrate VibrancyView

* feat(Android): add code for new and old architecture

* chore: update dependencies and example app

* fix(iOS): interface VibrancyViewComponentView

* refactor: separate codegen specs by platform

* refactor: rename Android component file to avoid a bug in Codegen

* refactor: delete/rename files

* refactor: conditionally include Fabric code in the original views

* refactor: remove unnecessary code in build.gradle
2022-11-03 17:50:33 +01:00
Thibault Malbranche
3c3cbe3527
refactor: typescript, hooks, build.gradle & podspec fixes and moved to bob (#476)
* Migrated code to typescript thanks to @YanislavSpaceIQ 
* Refactored everything to use https://github.com/callstack/react-native-builder-bob
* Fix podfile dependency on "React"
* Fix build.gradle issues with jcenter

Co-authored-by: YanisSpaceIQ <yanislav.konashchuk@spaceiq.com>
2022-07-21 13:19:30 +02:00
Alan Kenyon
4518b13efe working fallback view with background color 2020-04-08 09:22:56 -07:00
Sebastian Trebunak
325374548d Fix blur constants assigment 2020-01-18 10:26:11 +01:00
Sebastian Trebunak
491c9210a2 Update comment for ios version 2020-01-18 10:04:58 +01:00
Sebastian Trebunak
5487e0fdea Add iOS 13 blurs 2020-01-18 09:47:17 +01:00
Levi Buzolic
d95c29d4bc Enable regular and prominent BlurEffectStyles for iOS 10.0+ (#276)
Previously `regular`, `prominent` and `extraDark` were only available on tvOS. iOS 10.0+ adds support for `regular` and `prominent` according to the [BlurEffect.Style docs](https://developer.apple.com/documentation/uikit/uiblureffect/style).

https://developer.apple.com/documentation/uikit/uiblureffect/style/regular
https://developer.apple.com/documentation/uikit/uiblureffect/style/prominent

`extraDark` Remains tvOS only.
2019-03-26 13:53:50 -04:00
OceaHorn
7995fa3345 Modify 'Header Search Path' for native iOS app to integrate react-native-blur from react-native package.json. (#245) 2017-11-09 13:05:52 +01:00
Doron Pearl
10af4bac54 fix OS TV target check (#211) 2017-06-27 15:50:55 +02:00
Julien K
e41c7dbcd5 [tvOS] Add new blur types and setNativeProps (#210)
* [BlurView] Add tvOS blurTypes

* [BlurView] Add setNativeProps to use it in touchablehightlight

* [BlurView] Add blurTypes of tvOS

* [README] Add tvOS blur types

* [VibrancyView] Add setNativeProps
2017-06-26 14:43:33 +02:00
Julien Karst
a47b992f13 [tvOS] Add target to use blur on tvOS 2017-06-13 11:41:35 +02:00
Nathan Broadbent
10858e396b Fixed all the issues with iOS, and allow individual blurAmounts (instead of one shared value.)
Also changed VibrancyView to be a subclass of BlurView.
2017-04-17 22:23:10 +07:00
Alexey
e24162b478 Merge pull request #172 from eliperkins/vibrancy-refactor
Refactor VibrancyView to use modern Objective-C syntax and paradigms
2017-04-11 10:01:37 +02:00
Eli Perkins
60c38e34ee Refactor VibrancyView to use modern Objective-C syntax and paradigms
This moves to modern Objective-C practices.

UIVisualEffectViews will now only be created once, rather than on each change of blurType.
2017-04-10 11:24:39 -04:00
Eli Perkins
71b7e59a62 Refactor BlurView to use modern Objective-C syntax and paradigms
This moves to modern Objective-C practices.

Synthesized properties now use property declarations in a private
category.

UIVisualEffectViews will now only be created once, rather than on each
change of blurType.

BlurAmount uses a class property to track the currently set amount.
2017-04-10 11:19:29 -04:00
James G. Kim
19295fcd1d Update iOS header imports for RN 0.40 2017-01-06 02:34:46 +09:00
James G. Kim
438fc538d3 Fix linking error 2017-01-06 02:33:38 +09:00
Timur Gibadullin
8e7ccb58ea Fix duplicate symbols error in xcode 2016-12-21 14:54:04 +03:00
KelseyRegan
6d47336921 makes blurview and vibrancyview cliptobounds
makes blurview and vibrancyview cliptobounds so they can have rounded
corners
2016-11-11 21:21:26 -08:00
Steven Lambion
9eba3f72ac Moved creation of _visualEffectView out of layoutSubviews 2016-11-07 10:38:17 -08:00
Karol Kozub
b7f2913f4e Fix incorrectly assigning an NSNumber to blurEffect which resulted in a crash on -layoutSubviews 2016-11-02 13:01:22 +01:00
Jake Hasler
2d8c41e79d One more fix 2016-10-29 09:20:00 -06:00
Jake Hasler
cf1b12eef6 Variable Fix 2016-10-29 09:14:04 -06:00
Jake Hasler
fd1d7452fa New BlurAmount class, adjusted required propType 2016-10-27 01:19:43 -06:00
npomfret
e2f136e7a2 Changed the iOS deployment target to 8.0 2016-07-22 14:27:05 +01:00
npomfret
8e6092395f Changed the iOS deployment target from 9.0 to 7.0 so that its compatible with the default setting for react-native projects 2016-07-15 11:19:57 +01:00
Marc Shilling
e34b4b0d5f set build active architecture to no for release builds 2015-10-22 10:14:22 -04:00
Kureev Alexey
b88a330bd0 Hotfix wrong relative path 2015-10-08 19:48:27 +02:00
Kureev Alexey
38916c428e Attempt to fix xcodeproj 2015-10-08 18:06:10 +02:00
Kureev Alexey
79a8ab4aed Fix problems with example project run 2015-10-06 00:11:17 +02:00
Kureev Alexey
66f35af8f3 Rebuild react-native-blur for RN-0.11.4 2015-10-05 22:42:23 +02:00