Dab tsi yog module hauv react haiv neeg?
Dab tsi yog module hauv react haiv neeg?

Video: Dab tsi yog module hauv react haiv neeg?

Video: Dab tsi yog module hauv react haiv neeg?
Video: BABY I WANNA MEET YOU - NT ONE [OFFICIAL MUSIC VIDEO] | HMONG NEW SONG - NEW SONG 2023 2024, Hlis ntuj nqeg
Anonim

A haiv module yog ib txheej ntawm javascript functions uas yog siv natively rau txhua lub platform (nyob rau hauv peb cov ntaub ntawv yog iOS no thiab Android). Nws yog siv nyob rau hauv rooj plaub uas haiv neeg muaj peev xwm xav tau, uas react haiv neeg tsis muaj qhov sib xws module tseem, los yog thaum twg haiv neeg kev ua tau zoo dua.

Kuj paub, dab tsi yog haiv neeg modules hauv react haiv neeg?

A haiv module yog chav kawm Java uas feem ntau txuas rau ReactContextBaseJavaModule chav kawm thiab siv cov haujlwm uas xav tau los ntawm JavaScript.

Ib yam li ntawd, kuv yuav siv cov haiv neeg SDK li cas hauv cov neeg ua teb? Nruab SDK ntawm koj qhov React ib txwm ua haujlwm

  1. Kauj ruam 1 - Nruab SDK. Txij li thaum React tej pob khoom raug tswj los ntawm npm, txhua yam koj yuav tsum ua yog khiav cov lus txib hauv qab no ntawm koj qhov project hauv paus: $ npm nruab parse.
  2. Kauj ruam 2 - Txuas koj Parse App. Pib koj lub Parse app.
  3. Kauj Ruam 3 - Ntsuam xyuas koj qhov kev sib txuas. Tsim cov lej xeem.

Kuj Paub, dab tsi yog ib qho module hauv react?

Tsim ib module txhais tau hais tias koj yuav pab pawg ntawm cov khoom muaj feem cuam tshuam, txoj hauv kev thiab cov khoom muaj nqis ua ke, muab kev sib txuas rau pej xeem siv los ntawm lwm tus modules . Ib yam li koj yuav tsim cov node module . Wb tsim ib module hu ua kev ruaj ntseg rau ib Teb -Native application.

Rctbridge yog dab tsi?

React Native feem ntau nthuav tawm raws li kev hloov pauv kev ua si uas tso cai rau khiav JavaScript code hauv ib puag ncig txawb. Tej zaum lawv yuav tsim ib qho AST los ntawm JS code thiab hloov nws kom nws khiav ntawm ntau yam khoom siv.

Pom zoo: