This file contains 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
import React from "react"; | |
import { | |
SafeAreaView, | |
ScrollView, | |
View, | |
Image, | |
StyleSheet, | |
Text, | |
useWindowDimensions, | |
ImageSourcePropType, |
This file contains 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
/* | |
** | |
** GitHub Gist: https://rnrocket.dev/monday1 | |
** | |
*/ | |
import "react-native-gesture-handler"; | |
import { useState, useRef } from "react"; | |
import { | |
LayoutRectangle, |
This file contains 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
// | |
// TextViewProvider.swift | |
// SwiftViewSchool | |
// | |
// Created by Tanner West on 8/16/23. | |
// | |
import Foundation | |
import UIKit | |
@objc class TextViewProvider: UITextView { |
This file contains 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
// | |
// TextViewManager.m | |
// SwiftViewSchool | |
// | |
// Created by Tanner West on 8/16/23. | |
// | |
#import <UIKit/UIKit.h> | |
#import <React/RCTViewManager.h> | |
#import "SwiftViewSchool-Swift.h" |
This file contains 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
// | |
// TextViewProvider.swift | |
// SwiftViewSchool | |
// | |
// Created by Tanner West on 8/16/23. | |
// | |
import Foundation | |
import UIKit |
This file contains 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
import React from 'react'; | |
import {SafeAreaView, Text} from 'react-native'; | |
import {requireNativeComponent} from 'react-native'; | |
const TextView = requireNativeComponent('RNTTextView'); | |
function App(): JSX.Element { | |
return ( | |
<SafeAreaView style={{flex: 1}}> |
This file contains 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
// | |
// TextViewManager.m | |
// SwiftViewSchool | |
// | |
// Created by Tanner West on 8/16/23. | |
// | |
#import <UIKit/UIKit.h> | |
#import <React/RCTViewManager.h> |
This file contains 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
#import <MapKit/MapKit.h> | |
#import <React/RCTViewManager.h> | |
@interface RNTMapManager : RCTViewManager | |
@end | |
@implementation RNTMapManager | |
RCT_EXPORT_MODULE(RNTMap) |
This file contains 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
@Override | |
protected List<ReactPackage> getPackages() { | |
@SuppressWarnings("UnnecessaryLocalVariable") | |
List<ReactPackage> packages = new PackageList(this).getPackages(); | |
// Packages that cannot be autolinked yet can be added manually here, for example: | |
// packages.add(new MyReactNativePackage()); | |
packages.add(new com.visionnativemodulepoc.RNVisionModulePOCPackage()); | |
return packages; | |
} |
This file contains 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.visionnativemodulepoc | |
import android.view.View | |
import com.facebook.react.ReactPackage | |
import com.facebook.react.bridge.NativeModule | |
import com.facebook.react.bridge.ReactApplicationContext | |
import com.facebook.react.uimanager.ReactShadowNode | |
import com.facebook.react.uimanager.ViewManager | |
import com.visionnativemodulepoc.RNVisionModulePOC |