Skip to content

Instantly share code, notes, and snippets.

@FuadBalashov
FuadBalashov / README.md
Last active June 25, 2018 15:45
ExtendedStyleSheet Sans Styles

ExtendedStyleSheet Sans Styles

By replacing the code in api.js of React Native Extended Stylesheets, you can remove all styles from components. This is helpful for measuring the impact of styles on performance.

To make this change, you will have to replace the create function in react-native-extended-stylesheet/src/api.js in the node_modules of your project with the one included in this gist.

If your project uses inline styles or normal stylesheets this change will not affect those styles.

@FuadBalashov
FuadBalashov / LoadPostTask.java
Created April 5, 2016 03:48
LoadPostTask for Android Workshop
import android.os.AsyncTask;
import android.util.Log;
import android.widget.TextView;
import org.json.JSONException;
import org.json.JSONObject;
import java.io.BufferedInputStream;
import java.io.BufferedReader;
import java.io.InputStream;
public MyActivity extends Activity implements View.OnClickListener {
private View child1;
private View child2;
onCreate() {
// initilize stuff...
child1.setOnClickListener(this);
child2.setOnClickListener(this);
}