remove unnecessary android/web stuff
This commit is contained in:
@@ -1,11 +0,0 @@
|
||||
import * as React from 'react'
|
||||
|
||||
import {ExpoProTextViewProps} from './ExpoSelectableText.types'
|
||||
|
||||
export default function ExpoProTextView(props: ExpoProTextViewProps) {
|
||||
return (
|
||||
<div>
|
||||
<span>{props.name}</span>
|
||||
</div>
|
||||
)
|
||||
}
|
||||
@@ -1,5 +1,5 @@
|
||||
import { requireNativeModule } from 'expo-modules-core';
|
||||
import {requireNativeModule} from 'expo-modules-core'
|
||||
|
||||
// It loads the native module object from the JSI or falls back to
|
||||
// the bridge module (from NativeModulesProxy) if the remote debugger is on.
|
||||
export default requireNativeModule('ExpoProText');
|
||||
export default requireNativeModule('ExpoProText')
|
||||
|
||||
@@ -1,13 +0,0 @@
|
||||
import { EventEmitter } from 'expo-modules-core';
|
||||
|
||||
const emitter = new EventEmitter({} as any);
|
||||
|
||||
export default {
|
||||
PI: Math.PI,
|
||||
async setValueAsync(value: string): Promise<void> {
|
||||
emitter.emit('onChange', { value });
|
||||
},
|
||||
hello() {
|
||||
return 'Hello world! 👋';
|
||||
},
|
||||
};
|
||||
@@ -8,7 +8,7 @@ import {
|
||||
ExpoProTextSegment,
|
||||
ExpoProTextViewProps,
|
||||
} from './ExpoSelectableText.types'
|
||||
import {StyleSheet, Text, View} from 'react-native'
|
||||
import {Text, View} from 'react-native'
|
||||
|
||||
const NativeView: React.ComponentType<ExpoProTextNativeViewProps> =
|
||||
requireNativeViewManager('ExpoSelectableText')
|
||||
|
||||
Reference in New Issue
Block a user