react-native-tutorial | GitBook의 react-native-tutorial-korean 의 실습 코드 입니다 | Frontend Framework library
kandi X-RAY | react-native-tutorial Summary
kandi X-RAY | react-native-tutorial Summary
GitBook의 react-native-tutorial-korean 의 실습 코드 입니다.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of react-native-tutorial
react-native-tutorial Key Features
react-native-tutorial Examples and Code Snippets
Community Discussions
Trending Discussions on react-native-tutorial
QUESTION
I'm creating an app to integrate react-native
with an existing Swift app.
I've looked into similar issues:
- React-Native: Dismiss/Exit React-Native View back to Native
- How can I go back to native view controller from react-native page?
While following different tutorials:
- React Native calling class methods on native Swift
- Swift in React Native the ultimate guide
- React Native tutorial integrating in an existing app*
And the official docs
The problem is: all of them are outdated (but the docs). Most of them use the legacy Navigation
rather than Stack Navigator
. One of the tutorials (the one with an asterisk) shows how to dismiss the React Native app back to the Native app using the rootTag
of the app, but again, this was done with the legacy Navigation
.
If I try to do the same, I'm not able to see the props
from my app.
I have a single Storyboard with a Button
inside that when clicked calls this UIViewController
:
ButtonController
...ANSWER
Answered 2019-Oct-31 at 19:46If your are looking to dismiss the native swift view controller presented from RN View
QUESTION
I am in the learning stage for using ReactNative in iOS. So currently i have done all the initial set ups for it and now i am following the tutorial for basic learning. React Native
But i am getting the following error.
The associated .js file code is here
...ANSWER
Answered 2017-Mar-01 at 05:05AppRegistry.registerComponent(‘reactTutorialApp’, () => ReactCalculator);
QUESTION
I am ios developer and newbie to reactjs. I am using this link
https://www.raywenderlich.com/165140/react-native-tutorial-building-ios-android-apps-javascript to learn reactjs with ios. Everything works fine with the tutorial,but I got error on this line.
const price = item.price_formatted.split(' ')[0];
what's wrong with this line?
Thanks in advance.
ANSWER
Answered 2019-Jul-02 at 06:11 item.price_formatted.split(' ')[0];
QUESTION
I am running through this tutorial, and have gotten as far as getting the text to display on my emulator screen (run through Android Studio).
I have replaced the code in App.js
with the sample code mentioned on the tutorial. The tutorial says to place this text in android.index.js, but I cannot find that file anywhere in the project. The code that used to be in App.js, at any rate, contains the text displayed in the emulator.
The code in App.js before my edit is as follows:
...ANSWER
Answered 2018-Dec-11 at 15:28The problem was in rebuilding the app. It turns out that the command react-native run-android
would build the app the first time it was run, but not any subsequent times. I've written a bash script with the following code to force a rebuild on an app every time it's run.
Put this in a bash script and run from the project directory
QUESTION
Running through this tutorial on Mac OSX, I have android studio installed and built a Nexus 5 emulator (API 27, Android 8.1.0). When running the react-native run-android
command, there are no errors if the emulator is running through android studio, but the app does not begin running on the emulator.
(Note, I got this working last week on a loaner from work computer while my assigned laptop was being repaired, same OS, both macbook pro 15; the app would auto-start on the emulator)
If I run the command without the emulator on, I get this output:
...ANSWER
Answered 2018-Dec-10 at 15:05The app was on the device; it just didn't start immediately. I was able to find it by checking the apps list thoroughly. It seems that in some environments (like my loaner described above), the app with start on its own, and in other environments, it needs to be manually started.
QUESTION
Following this React Native Tutorial: Building Android Apps with JavaScript tutorial. I have the Android Studio open and the emulator running and it´s working I tested with another Android Studio app.
I read in the output below - Building and installing the app on the device and also - Starting the app
But the emulator does not show the app, any ideas? CMD OUTPUT:
...L:\react\PropertyFinder\PropertyFinder>react-native run-android JS server already running. Building and installing the app on the device (cd android && gradlew.bat installDebug)...
Task :app:installDebug Installing APK 'app-debug.apk' on 'Nexus_5X_API_27_Android_8.1_ORIO(AVD) - 8.1.0' for app:debug Installed on 1 device.
BUILD SUCCESSFUL in 8s 27 actionable tasks: 1 executed, 26 up-to-date 'adb' is not recognized as an internal or external command, operable program or batch file. Starting the app (adb shell am start -n com.propertyfinder/com.propertyfinder.MainActivity...
L:\react\PropertyFinder\PropertyFinder>
ANSWER
Answered 2018-Nov-12 at 10:30Answering my self, I run this yesterday so the app was already installed on the emulator.
The cmd command :
QUESTION
I am very new to React-Native and love it so far. Really great technology and very impressive tooling. I would like to propose it for use in my company.
However ... react-native examples demoing code-sharing btw Android and IOS platform are simply nowhere to find??? All I have found after 3-4 weeks looking into it is few excellent but only IOS examples. Below, are just few examples of articles lacking this. Although some of them claim in their title to cover both, they cover only IOS:
https://www.raywenderlich.com/165140/react-native-tutorial-building-ios-android-apps-javascript
https://mentormate.com/blog/react-native-components/
http://www.andevcon.com/news/take-a-crack-at-react-native-with-kyle-banks
https://appendto.com/2016/11/build-a-coffee-finder-app-with-react-native-and-the-yelp-api/
https://reactjs.co/react-native-convention/
https://www.lullabot.com/articles/build-native-ios-and-android-apps-with-react-native
http://facebook.github.io/react-native/docs/tutorial.html
... , this list could continue on and on but it should be enough to demonstrate the lack of good resources I'm talking about.
I understand react-native is cross platform in terms that you can write code for both Android and IOS, that is all clear and great.
But is it sharing the code? In other words, is it DRY? From what I see, it is write once for each platform rather than write once for all platforms. Again, I understand some Views (but not all) are platform specific but again, there is no example to show even that on both Android and IOS in the same project.
Where is a non-hello-world (real life) example to clearly demonstrates and teaches how to do that? React native used to have it in version 0.20 or so but it was removed and replaced with a HelloWorld example? Seriously @Facebook???
As per links above, lots of React-Native articles out-there are titled to cover both platforms but then they only talk about IOS without even mentioning any other platform? Very few talk about Android only, again, not even touching other platform in the same project. ... and lots of them are outdated!
I understand that the technology is very new (and very good from what I have seen so far, I really love it).
But assuming I have to propose React-Native as a next-gen platform to a company, I do not see any convincing cross-platform, code-sharing examples demoing this for both Android, IOS (UWP??) that I could help me learn, understand, build, and demo an example for that proposal.
I am not looking for chatty comments or links to courses but rather examples to show how to do this in more than just CRNA generated HelloWorld app.
...ANSWER
Answered 2017-Oct-12 at 17:09Found the answer here https://www.codementor.io/vijayst/build-react-native-retrofitting-ios-app-to-android-gsf5uyl1q in the very 1st paragraph and it is exactly what I have been trying to get RN/Facebook answer but they ignored the question all the time.
Very disappointing!
So, ReactNative is not "build-once-use-everywhere" but rather "learn-once-use-everywhere" meaning lots of code duplication. And by everywhere, they mostly mean Android and IOS although the examples out-there are mainly IOS. If they cover both platforms, then it is with almost no code sharing but lots of code-duplication.
Although, RN claims they can achieve up to 90% of code sharing, that is not demonstrated anywhere that I could find. Documentation is very shallow in touching anything let alone topic of code-sharing and the tutorial provided by RN is a HelloWorld, ... yes, seriously. Sad! Although they used to have a better tutorial in older version (like 0.20 or so).
In terms of recommending RN to a company as a next-gen platform, I see few issues
concerning patent license, no answers no explanations, very obscure and concerning for a company that would consider moving to this, I'd rather say open-source under quotation marks. Hopefully this will change as I see it as a mayor showstopper for anyone considering adapting this technology. I would say this is no more applicable as FB made react-native licensed using MIT as per https://github.com/facebook/react-native/issues/16079
documentation that is very basic without giving depth of explanation. For example, this is react-native site with demo sample to demonstrate code-sharing cross-platform nature (I warn you, it is a HelloWorld example) https://facebook.github.io/react-native/docs/tutorial.html
- React Native Community facebook page which is the page where you are supposed to find help and ask question as per react-native site will simply block you if you bring this topic on and will not let you in
- even here on SO, questions like this (after extremely thorough and time consuming research) will earn you only downgrades and zero answers or even attempts
- examples lack clarity and depth of explanation, it seem like whole community follow one pattern, copy / paste demonstrating code-duplication rather than code-sharing
- Most examples cover (to most basic extent) only IOS although most claim cross-platform nature on both Android and IOS with Android being mentioned in the title only and the body covering only IOS
- Impossible to ask for help on react-native site
- Impossible to suggest improvement on react-native site other than create pull request. In other words, they want you to work for them for free
- The framework is cross-platform, that is great but it is more of a copy/paste (copy from IOS into Android, then modify what needs modification) rather than code-sharing strategy. Every example I was able to find and it took me a month, was a violation of DRY principle in its best form
Although I mentioned things that bothered me at most during my research, I have to say that I hope this technology will thrive and become clear open source platform in future. I really like it and hope someone at @Facebook / @ReactNative will consider these suggestions, or at least provide improvements in the documentation, examples, access to community, place to ask questions and get help, clear licensing, ... all of which I was not able to get after spending a month researching RN.
Perhaps the technology is still not mature enough, which makes sense, it is very new.
Would I recommend it?
To developers yes, definitely. I really like it myself and will spend more time studying it.
To a company? Not really for the reason explained above.
UPDATES - Getting Better :):
... and to add my 2c to anyone who faced the same problem and contribute to community (at least in terms of finding tutorials that talk about both IOS and Android), I will keep posting links I have managed to find so far:
- https://differential.com/insights/sharing-code-between-android-and-ios-in-react-native/ is very basic example. Not really code sharing but rather code duplication but at least something
- https://www.codementor.io/vijayst/build-react-native-retrofitting-ios-app-to-android-gsf5uyl1q, also more of a code copying rather than code sharing but hey... going somewhere
- https://hackernoon.com/getting-started-with-react-navigation-the-navigation-solution-for-react-native-ea3f4bd786a4 another good one
This document explains that RN philosophy is "learn once, write anywhere" rather than "write once, run anywhere" http://makeitopen.com/tutorials/building-the-f8-app/design/
QUESTION
I am just learning about React-Native, so please provide some explanation in your answer.
I am trying to make this React-Native IOS example work on Android https://www.raywenderlich.com/165140/react-native-tutorial-building-ios-android-apps-javascript
The example works great on IOS, so, I edited my index.android.js to use NavigatorAndroid instead NavigatorIOS like this
...ANSWER
Answered 2017-Sep-03 at 23:32react-native
doesn't export a component named NavigatorAndroid
so you are getting undefined
instead of a real component.
As you can read in the NavitagorIOS
documentation ...
As the name implies, it is only available on iOS. Take a look at React Navigation for a cross-platform solution in JavaScript, or check out either of these components for native solutions: native-navigation, react-native-navigation.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install react-native-tutorial
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page