- 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,
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.wsy.myview; | |
| import android.os.Bundle; | |
| import android.support.v7.app.AppCompatActivity; | |
| import android.view.View; | |
| import com.wsy.myview.view.MyView2; | |
| public class NextActivity extends AppCompatActivity { | |
| int centerY = 100; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| public class CountingFileRequestBody extends RequestBody { | |
| private static final int SEGMENT_SIZE = 2048; // okio.Segment.SIZE | |
| private final File file; | |
| private final ProgressListener listener; | |
| private final String contentType; | |
| public CountingFileRequestBody(File file, String contentType, ProgressListener listener) { | |
| this.file = file; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| package com.blogspot.ksoichiro.linktest; | |
| import android.text.Layout; | |
| import android.text.Spannable; | |
| import android.text.SpannableString; | |
| import android.text.Spanned; | |
| import android.text.TextUtils; | |
| import android.text.method.LinkMovementMethod; | |
| import android.text.style.ClickableSpan; |