– React Native là framework xây dựng ứng dụng di động native sử dụng Javascript do Facebook phát hành và nhận định rằng đây chính là tương lai của lập trình di động.
– Từ lâu, tiêu chí của phát triển đa nền tảng luôn là “Viết (code) một lần, thực thi khắp nơi” (Code once, run everywhere), tuy vậy vẫn còn một số khác biệt cơ bản giữa web, iOS, và Android. Nhưng React phân lớp mức độ trừu tượng ở ba nền tảng để mà bạn chỉ phải tìm hiểu về React mà thôi, và bạn có thể viết các ứng dụng ở khắp các nền tảng, React giúp các lập trình viên tiết kiệm thời gian khi mà code có thể được tái sử dụng.
– Facebook phát hành mã nguồn mở React Native For Android giúp các lập trình viên tái sử dụng lập trình từ các ứng dụng web và iOS.
– Ở video này mình hướng dẫn các bạn cài đặt môi trường để lập trình android với framework React Native và demo ứng dụng android cơ bản với React Native.
– Link file hướng dẫn :
– Nếu bạn có thắc mắc về video có thể inbox qua fb của mình
+FB cá nhân mình
fb.com/phanminhtoanIT
Nguồn: https://freecode.com.vn
Xem thêm bài viết khác: https://freecode.com.vn/cong-nghe-ai
Xem thêm Bài Viết:
- Lập trình Android với NodeJS: Gửi và lưu trữ file – Giới thiệu
- Bài 6 Làm việc với danh sách list ,hoặc array trong python | học lập trình python
- Lập Trình WordPress 4x – Bài 01 Cài đặt WordPress & Các Công Cụ
- Lập Trình PHP – Bài 1 Tìm hiểu Json Phần 1
- Tổng Hợp Các Sản Phẩm Trong Khóa Lập Trình Ứng Dụng C# của học viên Đoàn Đình Minh (Part 2)
a ơi em ko chạy được react-native start
Dù mình có dùng lệnh react-native start rồi react-native run-android thì nó vẫn cứ báo lỗi
bạn ơi ? mình bị lỗi này thì làm sao bạn
info Running jetifier to migrate libraries to AndroidX. You can disable it using "–no-jetifier" flag.
Jetifier found 864 file(s) to forward-jetify. Using 4 workers…
info Starting JS server…
'adb' is not recognized as an internal or external command,
operable program or batch file.
info Launching emulator…
error Failed to launch emulator. Reason: No emulators found as an output of `emulator -list-avds`.
warn Please launch an emulator manually or connect a device. Otherwise app may fail to launch.
info Installing the app…
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
error Failed to install the app. Make sure you have the Android development environment set up: https://facebook.github.io/react-native/docs/getting-started.html#android-development-environment. Run CLI with –verbose flag for more details.
Error: Command failed: gradlew.bat app:installDebug -PreactNativeDevServerPort=8081
at checkExecSyncError (child_process.js:621:11)
at execFileSync (child_process.js:639:15)
at runOnAllDevices (C:UsersstormOneDriveDesktopreact-nativeHelloAppnode_modules@react-native-communitycli-platform-androidbuildcommandsrunAndroidrunOnAllDevices.js:94:39)
at processTicksAndRejections (internal/process/task_queues.js:93:5)
đấy, nghe người chuyên nghiệp nói sướng thật =))
mình theo như vậy nhưng vẫn bị lỗi đó bạn ơi
cảm ơn anh, bài giảng khá chi tiết và hay, mong anh ra nhiều bài hơn nữa 😀
cho em hỏi tại sao em cài andoid studio rồi nhưng ko thể tìm được location SDK ạ
em tạo đc project rồi nhưng lại ko có index.ios và android là sao ạ
Gửi tác giả, a có thể làm thêm app react native firebase kết nối CSDL được k ạ
What went wrong:
A problem occurred evaluating project ':app'.
> java.lang.UnsupportedClassVersionError: com/android/build/gradle/AppPlugin : Unsupported major.minor version 52.0
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
la sao ban
em rất đam mê với mấy cái voọc vooc này nhưng không biết bắt đầu từ đâu
tiếng anh em déo biết cái j thì có làm đc cái j không
Đây là lỗi của mình mong mọi người giúp đỡ 🙁
FAILURE: Build failed with an exception.
* What went wrong:
Execution failed for task ':app:installDebug'.
> com.android.builder.testing.api.DeviceException: Could not create ADB Bridge. ADB location: C:Usershai-ngocAppDataLocalAndroidsdkplatform-toolsadb.exe
* Try:
Run with –stacktrace option to get the stack trace. Run with –info or –debug option to get more log output.
BUILD FAILED
Total time: 22.563 secs
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
chào anh, em làm đúng như anh nhưng mà nó lại báo lỗi là không dùng được cái React.createClass!!
em cũng gửi kết bạn , và inbox trên face cho anh rồi ạ, mong anh trả lời sớm cho em ạ!
Rất hay. Cảm ơn !!!
tác giả cho mình hỏi trong câu lệnh react-native run-android trong command của mình nó lại đòi hỏi gán cả vị trí của JAVA_HOME nữa giải thích giúp mình với
thank tác giả (1 like ,1 sub và 1 click) :d
bạn cho mình hỏi khi tạo project mới thì có cần dòng này không ạ?
– npm install -g react-native-cli
Mình Build App bị lỗi này fix sao bạn
ERROR: JAVA_HOME is not set and no 'java' command could be found in your PATH.
Please set the JAVA_HOME variable in your environment to match the
location of your Java installation.
Could not install the app on the device, read the error above for details.
Make sure you have an Android emulator running or a device connected and have
set up your Android development environment:
https://facebook.github.io/react-native/docs/android-setup.html
Bạn ơi khi mình build app thì báo lỗi này:
* What went wrong:
A problem occurred evaluating project ':app'.
> SDK location not found. Define location with sdk.dir in the local.properties file or with an ANDROID_HOME environment variable.
M đã thiết lập biến môi trường ANDROID_HOME rồi. Mong đc bạn support
Phần lỗi không kết nối server có thể set cứng trong menu/Dev Settings/Debug server host & …/ nhập ip máy tính của mình:port/OK và reload
tiep de, ty
Bạn tạo project React Native thì dung lựu project của bạn là bao nhiêu vậy.
cái React Native này hay
hay quá Toàn ơi. Làm tiếp video về react native đi. giới thiệu control, binding dữ liệu , tk giao diện …. đi , lót dép hóng