Adding Web views with Progress Bars in React Native

Поділитися
Вставка
  • Опубліковано 3 гру 2024

КОМЕНТАРІ • 63

  • @ahmedparbes
    @ahmedparbes 2 роки тому

    Outstanding video. It saves me 20% of my lifetime earning:)
    May Almighty Bless You

  • @ashbyrezvani3313
    @ashbyrezvani3313 3 роки тому +1

    You are a Legend. You earned a sub my friend. Thank you.

  • @mansilakhatariya1605
    @mansilakhatariya1605 3 роки тому

    It helps me a lot, Thank you so much and i appreciate that

  • @user-oh4xi2xb2d
    @user-oh4xi2xb2d 3 роки тому

    very good explanation, вельмі добрае тлумачэнне

  • @Mahadev-x7u
    @Mahadev-x7u 3 роки тому +1

    Thank you so much...

  • @cryptoknight7256
    @cryptoknight7256 3 роки тому +1

    Excellent! Subscribed :)

  • @jacksonoliveira7051
    @jacksonoliveira7051 3 роки тому +1

    Maravilhoso Tutorial !!!!Obrigado!!

  • @tusharrana3924
    @tusharrana3924 2 роки тому

    really informative video
    1 question, if we want to use local HTML file which has many CSS n js also included in page will that work fine?

  • @femcerebro7759
    @femcerebro7759 2 роки тому

    Thanks for the tutorial sir.
    Is there a way to copy text to clipboard on webview? My app crashes if I do.

  • @anujsoni9507
    @anujsoni9507 2 роки тому

    Hello,
    In this video you really covered very much things,
    but i want to know that
    i want to navigate some verification weblink and after verification completely the web returns some value too,
    So i want to get that return value and update on locat hooks state, and pass the upldate value through params to another page
    Thank you

  • @Marco-my8dp
    @Marco-my8dp 3 роки тому +1

    Thanks a lot :)

  • @boubacarsamake4422
    @boubacarsamake4422 3 роки тому

    Thanks a lot for the video. my problem is that i downloaded your files and launched the app but the homepage image is not showing.

  • @vicentecilano7262
    @vicentecilano7262 3 роки тому +1

    Great video! Question! ¿do you know how to touch event (touchstart, touchmove ,...) in the webview or html js ?
    I need help show inside WebView html js with game such as table tennis or throw ball. Thank you

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      I haven't used Webview for anything like that before. It's best to do things like that natively. Playing a game in a react native webview doesn't sound like a good user experience.

  • @Emanu7478
    @Emanu7478 3 роки тому

    Iam using inline html. I want to pass a dynamic value inside html tag . How should it will possible in React Native webview ?

  • @minhpham-gl1km
    @minhpham-gl1km 3 роки тому

    i have issue when playing video in web view . the screen is black in webview and audio work fine how can i fix that

  • @DodlaSreekanth
    @DodlaSreekanth 2 роки тому

    how to handle print functionality is not working in react-native webview in please help me

  • @alakdam3970
    @alakdam3970 3 роки тому

    Do you know how to hide header, footer and cookies form in styled components?

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      Header and footer have nothing to do with styles. That is part of Navigation. Cookies? Do you mean web cookies? that's a completely different topic.

  • @nash......
    @nash...... 3 роки тому

    Hey, thanks for the great guide! I was hoping you could help me out with something though. The progress bar displays perfectly when the webview loads for the firs ttime, but does not show when I click on a link. I noticed you never clicked on a link within the web view, so I don't think it was addressed, and I've followed along properly. What can I do about this?! Thanks for your time.

    • @nash......
      @nash...... 3 роки тому +1

      Okay, I've added "onLoadStart={() => setLoaded(false)}" but the progress bar doesn't show up immediately upon clicking a link. Any ideas?

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      This is just an introduction to webviews. It doesn't cover every scenario, but take a look at this section in the docs here. github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#controlling-navigation-state-changes

  • @somasekharkakarla1174
    @somasekharkakarla1174 3 роки тому

    file.js with html is not loading in ios. it coming error has " src/assets/web/main.js' cannot be loaded as its extension is not registered in assetExts "

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      github.com/react-native-webview/react-native-webview/issues/1394

  • @bayanonymous422
    @bayanonymous422 3 роки тому

    Nice video, helped me integrate webview in my app. I just have one problem. The website I am using displays a dialog when opening it (pop-up) and accessing it and therefore, this dialog does not appear in the webview, even with js enabled. Could you help me fix this? Thanks.

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      Unfortunately, I'm not much of a web developer and there are multiple ways that they could be displaying the dialog that may not be compatible with the way I set it up in this video. I always try to avoid having to use webviews whenever possible. For specific issues like that it's best to post the question in the issues tab on their Github repo. This section also may or may not help github.com/react-native-webview/react-native-webview/blob/master/docs/Guide.md#communicating-between-js-and-native

    • @bayanonymous422
      @bayanonymous422 3 роки тому

      @@TheFlutterFactory Thankyou for your response, I appreciate your help! Keep making great videos!

  • @mohammedelhadidy3019
    @mohammedelhadidy3019 3 роки тому

    How to make back device button go back to webview history

  • @fuadop
    @fuadop 3 роки тому

    What vscode theme do you use?

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      I actually switch between a few different ones depending on the language/framework. 'Super One Dark' is probably my favorite

  • @ravikiranb
    @ravikiranb 3 роки тому

    How to add go back in webview. When physical back button is clicked it go back to main page

  • @arishashukla9348
    @arishashukla9348 3 роки тому

    Can we run react native app using tomcat server? If yes then how??

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      That's not related to mobile webviews. This is a more a web development question which is out of the scope of this channel.

  • @kayan_dev
    @kayan_dev 3 роки тому

    Can you react with it like search in google or comment in Facebook ?

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      It's just a webview. It would behave almost exactly like a website in the browser on your phone.

  • @sankofax8082
    @sankofax8082 3 роки тому

    what about how to handle hardware back button press on android... can you give an example on how to do that.

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому +1

      I haven't done that in a webview before, but I'm sure that question has been asked a lot in Stack overflow. stackoverflow.com/questions/39446077/react-native-go-back-on-android-hardware-back-button-pressed

  • @user-tt6nc6mo7k
    @user-tt6nc6mo7k 4 роки тому

    Hi, completely new to coding and looking to convert a website into an app. I already have a e-commerce wordpress website that is responsive, so it displays correctly on smartphones. Is it possible to convert this into an app by using react native web view?

    • @TheFlutterFactory
      @TheFlutterFactory  4 роки тому

      Converting it to react native means writing a normal react native app with UI components in the framework and a REST API layer. Webviews are useful if you just want to display a web page as it is from within an existing app. That's what the video is demonstrating. For example, a large company may have most of their app written with normal React native components, but they don't want to type out a 40 page Terms and Conditions that may change often. So they might put the link to the T&C inside of a Webview component. Your entire app should NOT be a webview if you want a fluid user experience since it requires a constant, stable internet connection.

    • @user-tt6nc6mo7k
      @user-tt6nc6mo7k 4 роки тому

      @@TheFlutterFactory would the app not perform the same as my website? Sorry but not sure what you mean by "constant, stable internet connection", won't my app also need internet to connect to the backend?
      I appreciate that it is perhaps not the best idea and would not provide any benefits over just using the website in the browser. Perhaps even may be some delay.
      I just want to know would it work as my website does? I would probably have to add back and forward buttons. And a loader. Other than that would everything work as normal like payment gateway popups etc.
      Appreciate the advice either way.

    • @TheFlutterFactory
      @TheFlutterFactory  4 роки тому

      If you're calling a REST api, you'll need internet, but it's up to you as the developer to decide when you to to get/send data to an internet. If you don't use webviews your app will all be connected to the internet while those api calls are taking place in the background. You can decide what UI to show before, during and after the api call is executing. Having your entire screen as the webview, means that a blank( page cannot be loaded) message will show without an internet connection. Most apps don't want the sending and retrieval of data to effect the user experience (no webviews, just asynchronous api calls for data), but it depends on your use case. Webviews are just one tool in a giant tool box. It's up to you to decide where/if you need to use it

  • @nuniezjorge
    @nuniezjorge 3 роки тому

    can you request values from a webview?

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      What do yo mean?

    • @nuniezjorge
      @nuniezjorge 3 роки тому

      @@TheFlutterFactory can i get values from fields in the webview and use them in the application logic?, sounds like i want to do something bad, but the place where i work requires some hacks to make things work, we have lots of applications that we don't have the code to modify them and we don't follow standards consistently

  • @AM-id5ry
    @AM-id5ry 3 роки тому

    injectedJavaScriptBeforeContentLoaded doesn’t work for me

  • @chanduj4609
    @chanduj4609 3 роки тому

    Loading local html file is easy to display , can you explain multiple html files are loading, i have problem multiple html files loading in ios simulator fine working but ,in android ,single html also not loading i got error loading page

    • @TheFlutterFactory
      @TheFlutterFactory  3 роки тому

      I don't understand what you're asking. What do you mean by loading multiple html files?

    • @chanduj4609
      @chanduj4609 3 роки тому

      @@TheFlutterFactory single html file was loading sucessfully ,but multiple html files loading example i want ,
      1) i want in one screen 10 button are there , each button must one individual html file.
      2) make a video to load 10 html files in 10 buttons and display individually
      3) for andriod and ios platforn ,in react native
      4) hope you make video or explain with code below.

    • @chanduj4609
      @chanduj4609 3 роки тому

      @@TheFlutterFactory yes multiple html files individually for ios and andriod platform in react native.

  • @jonathansantana7506
    @jonathansantana7506 2 роки тому

    What is login and password in the app?

  • @LifePhath
    @LifePhath 2 роки тому

    you keep saying I have already done that, why didn't you start from scratch , I can't even get the webview downloaded you didn't explain that

    • @TheFlutterFactory
      @TheFlutterFactory  2 роки тому

      Every video would be incredibly repetitive if I went through the basics of creating basic widgets, installing packages, etc. If you're looking at this video, it should be safe to assume that the viewer knows how to install packages already.

    • @TheFlutterFactory
      @TheFlutterFactory  2 роки тому

      I also mentioned the package name and install directions directly in the video, so I'm not sure what the confusion is

    • @LifePhath
      @LifePhath 2 роки тому

      @@TheFlutterFactory I don’t know anything and I thought you could at least explain that

    • @TheFlutterFactory
      @TheFlutterFactory  2 роки тому

      If you don't know anything, you shouldn't be looking at a video to install webviews. There's a lot more things to learn before that. Each video covers a specific topic. I can't repeat everything in every video. this channel isnt for people that are new to coding in general.

    • @LifePhath
      @LifePhath 2 роки тому

      @@TheFlutterFactory I didn’t hear it

  • @aninhatmz1406
    @aninhatmz1406 2 роки тому

    Hello, do you help me please?

  • @johannygil1936
    @johannygil1936 3 роки тому

    this dont work for android