瀏覽代碼

Rename to react-native-safe-area-context

Janic Duplessis 5 年之前
父節點
當前提交
2a67b8e3a9
共有 7 個文件被更改,包括 11 次插入21 次删除
  1. 1
    1
      README.md
  2. 0
    11
      babel.config.js
  3. 2
    0
      example/App.tsx
  4. 1
    1
      example/android/app/build.gradle
  5. 2
    2
      example/android/settings.gradle
  6. 3
    4
      package.json
  7. 2
    2
      react-native-safe-area-context.podspec

+ 1
- 1
README.md 查看文件

@@ -1 +1 @@
1
-# safe-area-view
1
+# react-native-safe-area-context

+ 0
- 11
babel.config.js 查看文件

@@ -1,14 +1,3 @@
1 1
 module.exports = {
2 2
   presets: ['module:metro-react-native-babel-preset'],
3
-  plugins: [
4
-    [
5
-      'module-resolver',
6
-      {
7
-        alias: {
8
-          '@th3rdwave/safe-area-view': './',
9
-        },
10
-        cwd: 'babelrc',
11
-      },
12
-    ],
13
-  ],
14 3
 };

+ 2
- 0
example/App.tsx 查看文件

@@ -16,6 +16,8 @@ import {
16 16
   DebugInstructions,
17 17
   ReloadInstructions,
18 18
 } from 'react-native/Libraries/NewAppScreen';
19
+
20
+// import { SafeAreaProvider, useSafeArea } from 'react-native-safe-area-context'; in your app.
19 21
 import { SafeAreaProvider, useSafeArea } from '..';
20 22
 
21 23
 type ForceInsets = 'always' | 'never';

+ 1
- 1
example/android/app/build.gradle 查看文件

@@ -199,7 +199,7 @@ dependencies {
199 199
       implementation jscFlavor
200 200
     }
201 201
 
202
-    implementation project(":th3rdwave-safe-area-view")
202
+    implementation project(":react-native-safe-area-context")
203 203
 }
204 204
 
205 205
 // Run this once to be able to run the application with BUCK

+ 2
- 2
example/android/settings.gradle 查看文件

@@ -1,5 +1,5 @@
1 1
 rootProject.name = 'SafeAreaViewExample'
2 2
 include ':app'
3 3
 
4
-include ':th3rdwave-safe-area-view'
5
-project(':th3rdwave-safe-area-view').projectDir = new File(rootProject.projectDir, '../../android')
4
+include ':react-native-safe-area-context'
5
+project(':react-native-safe-area-context').projectDir = new File(rootProject.projectDir, '../../android')

+ 3
- 4
package.json 查看文件

@@ -1,5 +1,5 @@
1 1
 {
2
-  "name": "@th3rdwave/safe-area-view",
2
+  "name": "react-native-safe-area-context",
3 3
   "version": "0.1.0",
4 4
   "description": "A more flexible <SafeAreaView>",
5 5
   "main": "src/index.tsx",
@@ -11,7 +11,7 @@
11 11
     "/*.podspec"
12 12
   ],
13 13
   "author": "Janic Duplessis <janicduplessis@gmail.com>",
14
-  "homepage": "https://github.com/th3rdwave/safe-area-view#readme",
14
+  "homepage": "https://github.com/th3rdwave/react-native-safe-area-context#readme",
15 15
   "license": "MIT",
16 16
   "scripts": {
17 17
     "start": "react-native start",
@@ -34,7 +34,6 @@
34 34
     "@types/react-native": "^0.60.5",
35 35
     "@typescript-eslint/eslint-plugin": "^1.7.0",
36 36
     "@typescript-eslint/parser": "^1.7.0",
37
-    "babel-plugin-module-resolver": "^3.2.0",
38 37
     "eslint": "5.16.0",
39 38
     "eslint-config-prettier": "^4.2.0",
40 39
     "eslint-plugin-prettier": "3.0.1",
@@ -46,6 +45,6 @@
46 45
   },
47 46
   "repository": {
48 47
     "type": "git",
49
-    "url": "https://github.com/th3rdwave/safe-area-view.git"
48
+    "url": "https://github.com/th3rdwave/react-native-safe-area-context.git"
50 49
   }
51 50
 }

th3rdwave-safe-area-view.podspec → react-native-safe-area-context.podspec 查看文件

@@ -3,7 +3,7 @@ require 'json'
3 3
 package = JSON.parse(File.read(File.join(__dir__, 'package.json')))
4 4
 
5 5
 Pod::Spec.new do |s|
6
-  s.name         = "th3rdwave-safe-area-view"
6
+  s.name         = "react-native-safe-area-context"
7 7
   s.version      = package['version']
8 8
   s.summary      = package['description']
9 9
   s.license      = package['license']
@@ -12,7 +12,7 @@ Pod::Spec.new do |s|
12 12
   s.homepage     = package['homepage']
13 13
   s.platforms    = { :ios => "9.0", :tvos => "9.2" }
14 14
 
15
-  s.source       = { :git => "https://github.com/th3rdwave/safe-area-view.git", :tag => "v#{s.version}" }
15
+  s.source       = { :git => "https://github.com/th3rdwave/react-native-safe-area-context.git", :tag => "v#{s.version}" }
16 16
   s.source_files  = "ios/**/*.{h,m}"
17 17
 
18 18
   s.dependency 'React'