React Native Image Shadow Color












0















I'm working on a mobile app with React-Native and I need to implement a new component.



The exemple :



enter image description here



So, my question is, how can i add this shadow / blur image on my component ?



I know how to make a blur on an image but how can i do this effect?



Thanks










share|improve this question



























    0















    I'm working on a mobile app with React-Native and I need to implement a new component.



    The exemple :



    enter image description here



    So, my question is, how can i add this shadow / blur image on my component ?



    I know how to make a blur on an image but how can i do this effect?



    Thanks










    share|improve this question

























      0












      0








      0








      I'm working on a mobile app with React-Native and I need to implement a new component.



      The exemple :



      enter image description here



      So, my question is, how can i add this shadow / blur image on my component ?



      I know how to make a blur on an image but how can i do this effect?



      Thanks










      share|improve this question














      I'm working on a mobile app with React-Native and I need to implement a new component.



      The exemple :



      enter image description here



      So, my question is, how can i add this shadow / blur image on my component ?



      I know how to make a blur on an image but how can i do this effect?



      Thanks







      image react-native shadow blur






      share|improve this question













      share|improve this question











      share|improve this question




      share|improve this question










      asked Nov 17 '18 at 12:34









      ClowningClowning

      55111




      55111
























          1 Answer
          1






          active

          oldest

          votes


















          1














          so,basically you work with two images, opacity, blurRadius and position absolute.



          try :



          <View style={{elevation:12, position:'absolute', left:100, top:100, elevation:12, borderRadius:50, borderWidth: 1, borderColor:'rgba(255, 255, 2555, 0.4)',  overflow: 'hidden',  opacity:0.3}}>
          <Image blurRadius={10} style={{width:300, height:150}} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>
          <View style={{position:'absolute', left:95, top:90, borderRadius:50, borderWidth: 0, borderColor:'rgba(255, 255, 2555, 0.4)', overflow: 'hidden'}}>
          <Image style={{width:300, height:150, }} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>





          share|improve this answer
























          • Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

            – Clowning
            Nov 18 '18 at 15:28











          • Finaly i used your code and add it react-native-blur package and it works well!

            – Clowning
            Nov 18 '18 at 21:30











          • Great ! React-native-blur is a good package

            – Sergio Clemente
            Nov 19 '18 at 0:55











          Your Answer






          StackExchange.ifUsing("editor", function () {
          StackExchange.using("externalEditor", function () {
          StackExchange.using("snippets", function () {
          StackExchange.snippets.init();
          });
          });
          }, "code-snippets");

          StackExchange.ready(function() {
          var channelOptions = {
          tags: "".split(" "),
          id: "1"
          };
          initTagRenderer("".split(" "), "".split(" "), channelOptions);

          StackExchange.using("externalEditor", function() {
          // Have to fire editor after snippets, if snippets enabled
          if (StackExchange.settings.snippets.snippetsEnabled) {
          StackExchange.using("snippets", function() {
          createEditor();
          });
          }
          else {
          createEditor();
          }
          });

          function createEditor() {
          StackExchange.prepareEditor({
          heartbeatType: 'answer',
          autoActivateHeartbeat: false,
          convertImagesToLinks: true,
          noModals: true,
          showLowRepImageUploadWarning: true,
          reputationToPostImages: 10,
          bindNavPrevention: true,
          postfix: "",
          imageUploader: {
          brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
          contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
          allowUrls: true
          },
          onDemand: true,
          discardSelector: ".discard-answer"
          ,immediatelyShowMarkdownHelp:true
          });


          }
          });














          draft saved

          draft discarded


















          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53351317%2freact-native-image-shadow-color%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown

























          1 Answer
          1






          active

          oldest

          votes








          1 Answer
          1






          active

          oldest

          votes









          active

          oldest

          votes






          active

          oldest

          votes









          1














          so,basically you work with two images, opacity, blurRadius and position absolute.



          try :



          <View style={{elevation:12, position:'absolute', left:100, top:100, elevation:12, borderRadius:50, borderWidth: 1, borderColor:'rgba(255, 255, 2555, 0.4)',  overflow: 'hidden',  opacity:0.3}}>
          <Image blurRadius={10} style={{width:300, height:150}} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>
          <View style={{position:'absolute', left:95, top:90, borderRadius:50, borderWidth: 0, borderColor:'rgba(255, 255, 2555, 0.4)', overflow: 'hidden'}}>
          <Image style={{width:300, height:150, }} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>





          share|improve this answer
























          • Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

            – Clowning
            Nov 18 '18 at 15:28











          • Finaly i used your code and add it react-native-blur package and it works well!

            – Clowning
            Nov 18 '18 at 21:30











          • Great ! React-native-blur is a good package

            – Sergio Clemente
            Nov 19 '18 at 0:55
















          1














          so,basically you work with two images, opacity, blurRadius and position absolute.



          try :



          <View style={{elevation:12, position:'absolute', left:100, top:100, elevation:12, borderRadius:50, borderWidth: 1, borderColor:'rgba(255, 255, 2555, 0.4)',  overflow: 'hidden',  opacity:0.3}}>
          <Image blurRadius={10} style={{width:300, height:150}} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>
          <View style={{position:'absolute', left:95, top:90, borderRadius:50, borderWidth: 0, borderColor:'rgba(255, 255, 2555, 0.4)', overflow: 'hidden'}}>
          <Image style={{width:300, height:150, }} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>





          share|improve this answer
























          • Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

            – Clowning
            Nov 18 '18 at 15:28











          • Finaly i used your code and add it react-native-blur package and it works well!

            – Clowning
            Nov 18 '18 at 21:30











          • Great ! React-native-blur is a good package

            – Sergio Clemente
            Nov 19 '18 at 0:55














          1












          1








          1







          so,basically you work with two images, opacity, blurRadius and position absolute.



          try :



          <View style={{elevation:12, position:'absolute', left:100, top:100, elevation:12, borderRadius:50, borderWidth: 1, borderColor:'rgba(255, 255, 2555, 0.4)',  overflow: 'hidden',  opacity:0.3}}>
          <Image blurRadius={10} style={{width:300, height:150}} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>
          <View style={{position:'absolute', left:95, top:90, borderRadius:50, borderWidth: 0, borderColor:'rgba(255, 255, 2555, 0.4)', overflow: 'hidden'}}>
          <Image style={{width:300, height:150, }} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>





          share|improve this answer













          so,basically you work with two images, opacity, blurRadius and position absolute.



          try :



          <View style={{elevation:12, position:'absolute', left:100, top:100, elevation:12, borderRadius:50, borderWidth: 1, borderColor:'rgba(255, 255, 2555, 0.4)',  overflow: 'hidden',  opacity:0.3}}>
          <Image blurRadius={10} style={{width:300, height:150}} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>
          <View style={{position:'absolute', left:95, top:90, borderRadius:50, borderWidth: 0, borderColor:'rgba(255, 255, 2555, 0.4)', overflow: 'hidden'}}>
          <Image style={{width:300, height:150, }} source={{uri:'https://image.shutterstock.com/image-photo/beautiful-garden-flowers-450w-257560639.jpg'}} />
          </View>






          share|improve this answer












          share|improve this answer



          share|improve this answer










          answered Nov 17 '18 at 16:00









          Sergio ClementeSergio Clemente

          10115




          10115













          • Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

            – Clowning
            Nov 18 '18 at 15:28











          • Finaly i used your code and add it react-native-blur package and it works well!

            – Clowning
            Nov 18 '18 at 21:30











          • Great ! React-native-blur is a good package

            – Sergio Clemente
            Nov 19 '18 at 0:55



















          • Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

            – Clowning
            Nov 18 '18 at 15:28











          • Finaly i used your code and add it react-native-blur package and it works well!

            – Clowning
            Nov 18 '18 at 21:30











          • Great ! React-native-blur is a good package

            – Sergio Clemente
            Nov 19 '18 at 0:55

















          Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

          – Clowning
          Nov 18 '18 at 15:28





          Hey Sergio, thanks a lot, I succeed to do this part, but not the gaussian blur on the image which is in back! Do you know how to do it ? Thanks

          – Clowning
          Nov 18 '18 at 15:28













          Finaly i used your code and add it react-native-blur package and it works well!

          – Clowning
          Nov 18 '18 at 21:30





          Finaly i used your code and add it react-native-blur package and it works well!

          – Clowning
          Nov 18 '18 at 21:30













          Great ! React-native-blur is a good package

          – Sergio Clemente
          Nov 19 '18 at 0:55





          Great ! React-native-blur is a good package

          – Sergio Clemente
          Nov 19 '18 at 0:55


















          draft saved

          draft discarded




















































          Thanks for contributing an answer to Stack Overflow!


          • Please be sure to answer the question. Provide details and share your research!

          But avoid



          • Asking for help, clarification, or responding to other answers.

          • Making statements based on opinion; back them up with references or personal experience.


          To learn more, see our tips on writing great answers.




          draft saved


          draft discarded














          StackExchange.ready(
          function () {
          StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53351317%2freact-native-image-shadow-color%23new-answer', 'question_page');
          }
          );

          Post as a guest















          Required, but never shown





















































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown

































          Required, but never shown














          Required, but never shown












          Required, but never shown







          Required, but never shown







          這個網誌中的熱門文章

          Xamarin.form Move up view when keyboard appear

          Post-Redirect-Get with Spring WebFlux and Thymeleaf

          Anylogic : not able to use stopDelay()