Kureev / react-native-side-menu

Side menu component for React Native
MIT License
2.21k stars 434 forks source link

Sample code does not work #365

Open singleseeker opened 6 years ago

singleseeker commented 6 years ago
☁  Basic [master] react-native start
Scanning 559 folders for symlinks in /private/tmp/react-native-side-menu/examples/Basic/node_modules (8ms)
 ┌────────────────────────────────────────────────────────────────────────────┐
 │  Running packager on port 8081.                                            │
 │                                                                            │
 │  Keep this packager running while developing on any JS projects. Feel      │
 │  free to close this tab and run your own packager instance if you          │
 │  prefer.                                                                   │
 │                                                                            │
 │  https://github.com/facebook/react-native                                  │
 │                                                                            │
 └────────────────────────────────────────────────────────────────────────────┘
Looking for JS files in
   /private/tmp/react-native-side-menu/examples/Basic

React packager ready.

Loading dependency graph, done.
ZHamburglar commented 5 years ago

This should be a fairly easy fix. I'll lay it out for everyone in the future reading this (for IOS).

Step 1: Clone the repo git clone https://github.com/react-native-community/react-native-side-menu.git

Step 2: Change to the examples directory. cd react-native-side-menu/examples/Basic/

Step 3: Install the Node Modules. npm install

Step 4: Start up the XCode application. (I believe this is where you went wrong).

Step 5: When XCode opens, click on 'Open Another Project.....' and navigate to the file in the following directory and open it- YOUR_DIRECTORY/react-native-side-menu/examples/Basic/ios/Basic.xcodeproj

Step 6: Whenever you are in XCode with the project loaded, choose your IPhone and click the play button and it should build it all from there.

I hope this helps.