Giter Site home page Giter Site logo

Comments (3)

demchenkoalex avatar demchenkoalex commented on August 24, 2024

Hi @Rc85 I ran the same stuff you did and also got a blank screen, but quickly realised that this is because I had packager opened for the other project, and then I started packager (yarn start) in the example folder and refreshed the app, counter appeared. Could you please verify?

Don't forget to restart packager after changing main in package.json in order for Fast Refresh to work

from react-native-module-template.

Rc85 avatar Rc85 commented on August 24, 2024

Re-cloned the repo, did everything mentioned, this time including the steps explained in the article about using module resolver. Did yarn start and yarn android and still white screen. I'm running this on an actual android device. Added another console.log in example's App.tsx's useEffect, and nothing showing in console.

Weird thing is, making any changes to App.tsx and saving does not refreshing the app on my device. Pressing R in the bundler reloads the app. I went ahead and returned <View><Text>Hi</Text></View> instead of the counter in App.tsx, still white screen.

I'm out of ideas. I read in an article that this library was highly recommended. I decided to us @react-native-community/bob yesterday, and it worked right out of the box. Anyways, let me know if you need to me to verify anything else.

from react-native-module-template.

demchenkoalex avatar demchenkoalex commented on August 24, 2024

Hi @Rc85 glad you have found an alternative! Re-cloned the repo as you did, yarn in both folders and yarn android on an actual device, everything works, so I can't suggest anything either.. the difference probably in machines we use, like OS, node version, android studio version etc. Anyway, my point with this library was making a minimal working setup for creating a library, and in the readme I am trying to explain how everything works, so it can be easily done manually by the developer :)

from react-native-module-template.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.