Skip to content

Instantly share code, notes, and snippets.

View Tamplier's full-sized avatar

Alex Tinekov Tamplier

View GitHub Profile
@Tamplier
Tamplier / chmod.cs
Created June 20, 2019 12:13
method to change posix permissions from c# script
using System.Runtime.InteropServices;
namespace Appodeal.Unity.Editor
{
public class Chmod
{
#if !UNITY_EDITOR_WIN
[DllImport("libc", SetLastError = true)]
public static extern int chmod(string pathname, int mode);
#else
@Tamplier
Tamplier / MyDependencies.cs
Created May 31, 2017 09:52
Unity Jar Resolver Dependencies
using System;
using System.Collections.Generic;
using UnityEditor;
[InitializeOnLoad]
public class MyDependencies : AssetPostprocessor {
#if UNITY_ANDROID
public static object svcSupport;
#endif
import React, { Component } from 'react';
import Button from 'react-native-button';
import { MRECView } from 'my-plugin'
import {
Platform,
AppRegistry,
StyleSheet,
Text,
View
} from 'react-native';
import React from 'react';
import { PropTypes, Component } from 'react';
import { requireNativeComponent, View, DeviceEventEmitter } from 'react-native';
class iface extends Component{
constructor(props) {
super(props);
}
render() {
return <MRECView {...this.props} />;
{ _currentElement:
{ '$$typeof': 60103,
type:
{ [Function: Constructor]
displayName: 'MrecView',
viewConfig:
{ NativeProps:
{ marginBottom: 'mixed',
paddingRight: 'mixed',
paddingHorizontal: 'mixed',