« first day (177 days earlier)      last day (543 days later) » 

5:21 AM
gm to all
 
5:36 AM
hi
is there any body
help me with this issue
i build an app with react native
and getting bundler error
unable to load script from assets 'index.android.bundle'. make sure your bundle is packaged correctly or you're running a packager server.
 
yes
 
@Sport gm
so do u know about this issue
im really a beginner on this case
 
are u able to run any react native app
 
this is my first app
This warning is caused by a @providesModule declaration with the same name across two different files.
ERROR watch /home/android/React Native App/first App/secondApp/AwesomeProject/node_modules/jest/node_modules/jest-cli/node_modules/istanbul-lib-instrument/node_modules/babel-traverse/node_modules/babel-runtime/node_modules/core-js/library/fn/dom-collections ENOSPC
{"code":"ENOSPC","errno":"ENOSPC","syscall":"watch /home/android/React Native App/first App/secondApp/AwesomeProject/node_modules/jest/node_modules/jest-cli/node_modules/istanbul-lib-instrument/node_modules/babel-traverse/node_m
now i get this while running react-native start
 
5:54 AM
adb reverse tcp:8081 tcp:8081
Then, select 'Reload JS' from the Developer menu by shaking the device.

If the above steps are not working or you are running a lower version of Android, please try the following to connect via Wi-Fi:

Access the Developer menu, go to the 'Dev Settings'.
Select 'Debug server host for device'.
Type in your machine IP address and port e.g. 10.0.0.1:8081
 
gm
@KyleKhalaf im also Objective-C, C++ and C# background :D
 
6:24 AM
@Sport where is the menu
@Sport do u use a special IDE for react native
is there
 
A K
are you using npm or yarn?
which version of react native are you using?
 
npm
 
A K
use yarn
the later versions have issues with libaries/dependencies versions if youre using npm
 
{
"name": "myapp",
"version": "0.0.1",
"private": true,
"scripts": {
"start": "node node_modules/react-native/local-cli/cli.js start",
"test": "jest"
},
"dependencies": {
"react": "16.0.0-alpha.12",
"react-native": "0.45.1"
},
"devDependencies": {
"babel-jest": "20.0.3",
"babel-preset-react-native": "2.0.0",
"jest": "20.0.4",
"react-test-renderer": "16.0.0-alpha.12"
},
"jest": {
"preset": "react-native"
}
}
 
A K
yarn is a safer bet
 
6:28 AM
how to install yarn alongside npm
 
A K
you havent added any dependencies/libraries?
and your android is not bundling properly?
 
so how to add
where to add
 
A K
how far are you into your react native app?
 
one week
 
A K
dont worry about yarn if you havent added any libraries
 
6:29 AM
ok
 
A K
youre using the base stuff right?
you didnt added any libraries?
so what's your issue?
 
ok how to add libraries
 
A K
you need to install yarn
yarn add "libary name"
so you'll need a networking library to communicate with the server for instance
axios, requeset, got, etc.
yarn add axios
if you use npm install axios, big chance itll fail bundling due to versioning
 
can i use this link
to install yarn
 
A K
yarn is a safe bet when using facebook related libaries and tech together
 
6:31 AM
axios is very uncertain
 
A K
saves you a lot of time
i doubt he can implement relay + graphql
which is the recommended networking tools for react native apps
 
axios is something like yarn and npm or is the another thing
 
A K
axios is a networking tool, like request
use the tools you need to get the job done
has anyone used typescript with react?
 
i request more than 15 web call using axios spread .. sometimes it fail in middle of executing webservice
so now i feel its useless
 
A K
hmm yea i've been leaning away froma xios
 
6:34 AM
i installed yarn version 0.24.5
is that ok @AK
 
A K
yea
so what's your issue
i'm planning on knocking out soon
 
so what happed to me :)
can i create app from scratch
again
 
A K
yes
but itll use yarn instead of npm
 
npm provides wide verity of libs
 
A K
it wont make a difference; but i find yarn more useful for installing dependencies
 
6:36 AM
like cocoapods
 
automatically or i should have to tell it
 
A K
just make sure you clean out your yarn cache
i ran into a lot of version bugs when i used npm and react together
but none when i used yarn and react/react-native
i use npm whenever i deal with non react related projects
 
wow i used
react-native init AwesomeProject
 
hmmm
 
and yarn automatically handle the process
 
A K
6:38 AM
since youre new to react native
 
i am so new
 
A K
these are the things you need to know to building a kickass app
 
hah
 
Im using ubuntu
 
A K
6:39 AM
and networking tools; it varies depending on the circumstance
 
what IDE should i have to use
best one
 
A K
? IDE doesn't matter
 
wow it nice tuts for newbie
 
A K
what does matters is how much ram your device has
since youre running ios simulator
 
what about Nuclide
 
A K
6:40 AM
that's like 3-5 gbs i think
 
i hear that it has debug tools
like what here siad
 
Nuclide is good but its paid i guess
atom sucks
 
A K
i used atom and then switched to visual studio code
it really doesnt matter
whatever floats your boat
 
im using Sublime Text
 
A K
imo, visual > atom
 
6:41 AM
deco is looks good for mac
nice feature upcoming in deco
 
A K
imo, react navigation is THE best library for react native
you can easily build any ui screen with easy navigation
 
my chrome debugger is very slow
:/
i find out how to improve it it
 
A K
how much ram does your device have?
seems like a ram issue
 
axios web call is performance downgraded
few days back it working charm
 
A K
chrome eats up your ram and running a mobile simulator eats a lot more
 
6:45 AM
navigation and app working good ..but if i call webCall it degraded
hm agreed
Chrome also sucks :D
i restarts my mac
 
A K
i have 8 gb, but its not enough when i run both android and ios simulators
 
i restart chrome, restart xcode, restart simulator, restart packager
but result same
i have too 8 GB RAM
 
A K
how many chrome tabs is running?
 
7
but if i use 1 tab still same result
 
A K
hmm dunno then; maybe memory leak or bad script somewhere
 
6:47 AM
i upgrade too chrome
 
A K
have you used typescript?
 
i doubt Axios
naah
not used typescript
 
A K
hmm i need to pass props down to a stateless functional componnt but i need to know what type my prop is
and it's a bit confusing
what kind of network calls are you making?
is it data driven?
because graphql + relay is usually the way to go for react native apps
 
wait
u can check datatype inside props
typeOf method
 
A K
i realized that i never mapped it to state
it should work now
 
6:50 AM
i'm using simple HTTP request and save data in Realm
 
A K
oh, then graphql+relay is overkill
i worked at a shitty payment app built on react native for a little bit; that's where i picked up react native and have been using it since then
 

« first day (177 days earlier)      last day (543 days later) »