react native new project mac
// Select a folder whereyou want to save the project
//go into that folder
cd React_Native_Projects
//to avoid some future problems when starting the simulator, i installed cocoapods in the general folder for all the projects (i didn't have it installed)
sudo gem install cocoapods
//create the new react native project
react-native init react-project //project with the name 'react-project'
//go into the project folder
cd react-project
//you can now lauch the simulator
react-native run-ios
//if you run into the error 'Failed to build iOS project. We ran 'xcodebuild' command but it exited with error code 65'
//try doing this
cd ios
pod install
rm -rf build/
cd ..
react-native run-ios
Also in JavaScript:
- last item in array javascript
- ES6: Set Default Parameters for Your Functions
- javascript use regex to check for phone number
- js create object from array
- quicksort algorithm javascript
- iterate over node object children
- how to trim the file name when length more than 10 in angular
- angular datatable reload with pagination
- jquery selected option
- Can't perform a React state update on an unmounted component. This is a no-op, but it indicates a memory leak in your application. To fix, cancel all subscriptions and asynchronous tasks in a useEffect cleanup function.
- d3 disable context menu
- jquery wait for all ajax requests to complete
- buttons js before submit
- how to execute javascript after c# function execute
- declare multiple variables javascript
- copy array javascript
- how to add attribute to selected element in javascript
- dart map to json string
- d3 tree dag
- javascript get element by class
- codemirror get value
- javascript round to nearest integer
- getFullYear within moment in angular
- javascript get multiple elements by id