Comments (3)
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.
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.
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)
- Fresh setup yields Xcode 12.4 build error: "ld: library not found for -lRNModuleTemplateModule" HOT 3
- How to use library that requires native setup? HOT 9
- Error finding the headers HOT 6
- I want to add custom fonts to the module HOT 1
- How can i add placeholder images? HOT 2
- Adding new library made with this template to another project HOT 12
- Assets folder is not included HOT 1
- Error: Invalid Hook Call HOT 11
- Question: How to add custom styles into the library? HOT 2
- Unable to resolve module ./index HOT 2
- React Navigation error within the library HOT 2
- Renaming module template causes module to return as null in JS (Android) HOT 1
- Suggestion for Seeing Changes immediately HOT 1
- How to add custom fonts
- How to upgrade?
- Error building example app HOT 3
- How to upgrade?
- How to publish to GitHub or private GitHub repo ? HOT 1
- [!] No podspec found for `@package` in `../node_modules/@package/needed_package` HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from react-native-module-template.