- Create a project in XCode with the default settings
- iOS > Application > Single View Application
- Language: Swift
- Under project General settings, add ReactKit to Linked Framework and Libraries
- + > Add Other... and choose /path/to/react-native/ReactKit/ReactKit.xcodeproj
- Now ReactKit would have been imported. Link it by choosing it from the list.
- + > lib.ReactKit.a
- Under project Build Settings,
var express = require('express'); | |
var router = express.Router(); | |
var passport = require('passport'); | |
var FacebookStrategy = require('passport-facebook').Strategy; | |
var AWS = require('aws-sdk'); | |
var colors = require('colors'); | |
var AWS_ACCOUNT_ID = 'XXXXXXXXXXX'; |
package main | |
import ( | |
"fmt" | |
"io" | |
"os" | |
) | |
var path = "/Users/novalagung/Documents/temp/test.txt" |
import android.app.Activity; | |
import android.app.Service; | |
import android.content.BroadcastReceiver; | |
import android.content.Context; | |
import android.content.Intent; | |
import android.content.IntentFilter; | |
import android.os.Bundle; | |
import android.os.IBinder; | |
import android.support.v4.content.LocalBroadcastManager; |
If you haven't already set your NPM author info, now you should:
npm set init.author.name "Your Name"
npm set init.author.email "[email protected]"
npm set init.author.url "http://yourblog.com"
npm adduser
let moduleQueries = []; | |
let moduleTypeDefinitions = []; | |
let moduleMutations = []; | |
let moduleResolvers = []; | |
let files = config.getGlobbedFiles(path.join(__dirname, "**", "*schema.js")); | |
// Load schema files | |
files.forEach((file) => { | |
let moduleSchema = require(path.resolve(file)); |
You can use this class to realize a simple sectioned RecyclerView.Adapter
without changing your code.
The RecyclerView
should use a LinearLayoutManager
.
You can use this code also with the TwoWayView
with the ListLayoutManager
(https://github.com/lucasr/twoway-view)
This is a porting of the class SimpleSectionedListAdapter
provided by Google
Example:
public interface CustomItemClickListener { | |
public void onItemClick(View v, int position); | |
} |
I decided to build an iOS app for my University's bus service that runs through the various campuses.
It was an interesting challenge as I had nothing but the printed timetables (http://www.nottingham.ac.uk/about/documents/903-times.pdf) to use as the data.
Thus I had to come with a suitable data structure that would complement the design & user experience i had in mind for the app.
I also decided to take the challenge of writing the app in swift. This project has helped me get to up speed with swift really quickly.