Browse Source

Rename to react-native-safe-area-context

Janic Duplessis 5 years ago
parent
commit
2a67b8e3a9

+ 1
- 1
README.md View File

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

+ 0
- 11
babel.config.js View File

1
 module.exports = {
1
 module.exports = {
2
   presets: ['module:metro-react-native-babel-preset'],
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 View File

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

+ 1
- 1
example/android/app/build.gradle View File

199
       implementation jscFlavor
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
 // Run this once to be able to run the application with BUCK
205
 // Run this once to be able to run the application with BUCK

+ 2
- 2
example/android/settings.gradle View File

1
 rootProject.name = 'SafeAreaViewExample'
1
 rootProject.name = 'SafeAreaViewExample'
2
 include ':app'
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 View File

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

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