commit 87e3b5c745255da7dda9d2a345946b10bd3a10e3 Author: Jerry Yan <792602257@qq.com> Date: Thu Feb 27 16:30:57 2020 +0800 挖新坑(TAT diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..d42ff18 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +*.pbxproj -text diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..825d527 --- /dev/null +++ b/.gitignore @@ -0,0 +1,69 @@ +# OSX +# +.DS_Store + +# Xcode +# +build/ +*.pbxuser +!default.pbxuser +*.mode1v3 +!default.mode1v3 +*.mode2v3 +!default.mode2v3 +*.perspectivev3 +!default.perspectivev3 +xcuserdata +*.xccheckout +*.moved-aside +DerivedData +*.hmap +*.ipa +*.xcuserstate +project.xcworkspace + +# Android/IntelliJ +# +build/ +.idea +.gradle +local.properties +*.iml + +# Visual Studio Code +# +.vscode/ + +# node.js +# +node_modules/ +npm-debug.log +yarn-error.log + +# BUCK +buck-out/ +\.buckd/ +*.keystore +!debug.keystore + +# fastlane +# +# It is recommended to not store the screenshots in the git repo. Instead, use fastlane to re-generate the +# screenshots whenever they are needed. +# For more information about the recommended setup visit: +# https://docs.fastlane.tools/best-practices/source-control/ + +*/fastlane/report.xml +*/fastlane/Preview.html +*/fastlane/screenshots + +# Bundle artifact +*.jsbundle + +# CocoaPods +/ios/Pods/ + +*.idea +yarn* + +**gradle* diff --git a/.npmignore b/.npmignore new file mode 100644 index 0000000..a6107ad --- /dev/null +++ b/.npmignore @@ -0,0 +1 @@ +/android/build diff --git a/android/src/main/AndroidManifest.xml b/android/src/main/AndroidManifest.xml new file mode 100644 index 0000000..45a1681 --- /dev/null +++ b/android/src/main/AndroidManifest.xml @@ -0,0 +1,4 @@ + + \ No newline at end of file diff --git a/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradeModule.java b/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradeModule.java new file mode 100644 index 0000000..3976a48 --- /dev/null +++ b/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradeModule.java @@ -0,0 +1,28 @@ +package top.jerryyan.RN.A.VersionUpgrade; + +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.bridge.ReactContextBaseJavaModule; +import com.facebook.react.bridge.ReactMethod; + +import java.util.HashMap; +import java.util.Map; + +public class UpgradeModule extends ReactContextBaseJavaModule { + private final ReactApplicationContext reactContext; + + public UpgradeModule(ReactApplicationContext reactContext) { + super(reactContext); + this.reactContext = reactContext; + } + + @Override + public String getName() { + return "VersionUpgrade"; + } + + @Override + public Map getConstants(){ + final Map constants = new HashMap<>(); + return constants; + } +} diff --git a/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradePackage.java b/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradePackage.java new file mode 100644 index 0000000..2efb753 --- /dev/null +++ b/android/src/main/java/top/jerryyan/RN/A/VersionUpgrade/UpgradePackage.java @@ -0,0 +1,22 @@ +package top.jerryyan.RN.A.VersionUpgrade; +import java.util.Arrays; +import java.util.Collections; +import java.util.List; + +import com.facebook.react.ReactPackage; +import com.facebook.react.bridge.NativeModule; +import com.facebook.react.bridge.ReactApplicationContext; +import com.facebook.react.uimanager.ViewManager; +import com.facebook.react.bridge.JavaScriptModule; + +public class UpgradePackage implements ReactPackage { + @Override + public List createNativeModules(ReactApplicationContext reactContext) { + return Arrays.asList(new UpgradeModule(reactContext)); + } + + @Override + public List createViewManagers(ReactApplicationContext reactContext) { + return Collections.emptyList(); + } +} diff --git a/index.js b/index.js new file mode 100644 index 0000000..17dc75e --- /dev/null +++ b/index.js @@ -0,0 +1,3 @@ +import { NativeModules } from "react-native"; + +export default NativeModules.FitFullScreen; diff --git a/package.json b/package.json new file mode 100644 index 0000000..8f3f93f --- /dev/null +++ b/package.json @@ -0,0 +1,32 @@ +{ + "name": "jerry-rn-a-versionupgrade", + "version": "1.0.0", + "description": "Fit FullScreen Mode.", + "main": "index.js", + "scripts": { + "test": "echo \"Error: no test specified\" && exit 1" + }, + "repository": { + "type": "git", + "url": "ssh://git@git.jerryyan.cn:29022/q792602257/jerry-rn-a-versionupgrade.git" + }, + "keywords": [ + "react-native", + "ios", + "android" + ], + "author": "Jerry Yan", + "license": "ISC", + "bugs": { + "url": "http://git.jerryyan.top/q792602257/jerry-rn-a-versionupgrade" + }, + "homepage": "http://git.jerryyan.top/q792602257/jerry-rn-a-versionupgrade", + "peerDependencies": { + "react": "^16.8.1", + "react-native": ">=0.60.0-rc.0 <1.0.x" + }, + "devDependencies": { + "react": "^16.9.0", + "react-native": "^0.61.5" + } +}