A ViewPager for Android & iOS. It also has handy features implemented to handle common use-case scenarios.
const views = [
<View><Text>View 1</Text></View>,
View 2,
yarn add react-native-config
react-native link react-native-config
.env
files for each configuration. Ex: .env.dev
, .env.prod
, etc
Ex:API_ENDPOINT=https://api.myresource.com/dev
ENV=dev
import paho.mqtt.client as mqtt | |
# The callback for when the client receives a CONNACK response from the server. | |
def on_connect(client, userdata, rc): | |
print("Connected with result code "+str(rc)) | |
# Subscribing in on_connect() means that if we lose the connection and | |
# reconnect then subscriptions will be renewed. | |
client.subscribe("hello/world") | |
# The callback for when a PUBLISH message is received from the server. |
# Timecode burn with ffmpeg | |
# ffmpeg must be configured with --enable-libfreetype | |
# box=1 - tells ffmpeg to draw a box around the text | |
# boxcolor - format is 0xRRGGBB[AA] | |
ffmpeg -i video.mov -vcodec libx264 -cmp 22 -vf "drawtext=fontfile=DroidSansMono.ttf: timecode='09\:57\:00\:00': r=23.976: x=(w-tw)/2: y=h-(2*lh): fontcolor=white: box=1: boxcolor=0x00000099" -y output.mov |