Skip to content

Commit

Permalink
chore: rename package (#20)
Browse files Browse the repository at this point in the history
  • Loading branch information
kunalchavhan authored Jun 21, 2024
1 parent ddb81a7 commit decbf38
Show file tree
Hide file tree
Showing 11 changed files with 29 additions and 29 deletions.
4 changes: 2 additions & 2 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,9 +23,9 @@ The [example app](/example/) demonstrates usage of the library. You need to run

It is configured to use the local version of the library, so any changes you make to the library's source code will be reflected in the example app. Changes to the library's JavaScript code will be reflected in the example app without a rebuild, but native code changes will require a rebuild of the example app.

If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/RemoteComponentExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-remote-component`.
If you want to use Android Studio or XCode to edit the native code, you can open the `example/android` or `example/ios` directories respectively in those editors. To edit the Objective-C or Swift files, open `example/ios/RemoteComponentExample.xcworkspace` in XCode and find the source files at `Pods > Development Pods > react-native-remote-ui`.

To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-remote-component` under `Android`.
To edit the Java or Kotlin files, open `example/android` in Android studio and find the source files at `react-native-remote-ui` under `Android`.

You can use various commands from the root directory to work with the project.

Expand Down
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# react-native-remote-component
# react-native-remote-ui

Remote Component allow react-native (Host) applications to render remote (Server) components. Remote components are loaded through URI at runtime. Remotely loaded components behaves similar to the locally imported components.

Expand All @@ -7,7 +7,7 @@ Remote Component are babel transpiled source code of tsx or jsx, which is execut
## Installation

```sh
npm install react-native-remote-component
npm install react-native-remote-ui
```

## Usage
Expand All @@ -19,7 +19,7 @@ npm install react-native-remote-component

import * as React from 'react';
import { View } from 'react-native';
import { RemoteComponent } from 'react-native-remote-component';
import { RemoteComponent } from 'react-native-remote-ui';

const FallbackComponent = () => {
return (
Expand Down Expand Up @@ -61,7 +61,7 @@ import { View } from 'react-native';
import {
RemoteComponent,
preloadRemoteComponent,
} from 'react-native-remote-component';
} from 'react-native-remote-ui';

export default function App() {
// make sure to preload before actual usage
Expand Down
8 changes: 4 additions & 4 deletions example/ios/Podfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -944,7 +944,7 @@ PODS:
- React-Mapbuffer (0.73.6):
- glog
- React-debug
- react-native-remote-component (0.1.0):
- react-native-remote-ui (0.1.0):
- glog
- RCT-Folly (= 2022.05.16.00)
- React-Core
Expand Down Expand Up @@ -1177,7 +1177,7 @@ DEPENDENCIES:
- React-jsinspector (from `../node_modules/react-native/ReactCommon/jsinspector-modern`)
- React-logger (from `../node_modules/react-native/ReactCommon/logger`)
- React-Mapbuffer (from `../node_modules/react-native/ReactCommon`)
- react-native-remote-component (from `../..`)
- react-native-remote-ui (from `../..`)
- react-native-safe-area-context (from `../node_modules/react-native-safe-area-context`)
- React-nativeconfig (from `../node_modules/react-native/ReactCommon`)
- React-NativeModulesApple (from `../node_modules/react-native/ReactCommon/react/nativemodule/core/platform/ios`)
Expand Down Expand Up @@ -1274,7 +1274,7 @@ EXTERNAL SOURCES:
:path: "../node_modules/react-native/ReactCommon/logger"
React-Mapbuffer:
:path: "../node_modules/react-native/ReactCommon"
react-native-remote-component:
react-native-remote-ui:
:path: "../.."
react-native-safe-area-context:
:path: "../node_modules/react-native-safe-area-context"
Expand Down Expand Up @@ -1363,7 +1363,7 @@ SPEC CHECKSUMS:
React-jsinspector: 85583ef014ce53d731a98c66a0e24496f7a83066
React-logger: 3eb80a977f0d9669468ef641a5e1fabbc50a09ec
React-Mapbuffer: 84ea43c6c6232049135b1550b8c60b2faac19fab
react-native-remote-component: fd1d7ee73e0c355a5d813395fbb81aebf3519613
react-native-remote-ui: 2e5c827d3e4b757431dd03e3192177d13b5a96cb
react-native-safe-area-context: b97eb6f9e3b7f437806c2ce5983f479f8eb5de4b
React-nativeconfig: b4d4e9901d4cabb57be63053fd2aa6086eb3c85f
React-NativeModulesApple: cd26e56d56350e123da0c1e3e4c76cb58a05e1ee
Expand Down
2 changes: 1 addition & 1 deletion example/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
"@react-navigation/native-stack": "^6.9.26",
"react": "18.2.0",
"react-native": "0.73.6",
"react-native-remote-component": "link:../src",
"react-native-remote-ui": "link:../src",
"react-native-safe-area-context": "^4.9.0",
"react-native-screens": "^3.29.0"
},
Expand Down
2 changes: 1 addition & 1 deletion example/src/screens/HomeScreen.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import React, { useCallback } from 'react';
import { View, StyleSheet, Text, Platform } from 'react-native';
import { RemoteComponent } from 'react-native-remote-component';
import { RemoteComponent } from 'react-native-remote-ui';

const FallbackComponent = () => {
return (
Expand Down
6 changes: 3 additions & 3 deletions example/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -5646,15 +5646,15 @@ __metadata:
express: ^4.17.1
react: 18.2.0
react-native: 0.73.6
react-native-remote-component: "link:../src"
react-native-remote-ui: "link:../src"
react-native-safe-area-context: ^4.9.0
react-native-screens: ^3.29.0
languageName: unknown
linkType: soft

"react-native-remote-component@link:../src::locator=react-native-remote-component-example%40workspace%3A.":
"react-native-remote-ui@link:../src::locator=react-native-remote-component-example%40workspace%3A.":
version: 0.0.0-use.local
resolution: "react-native-remote-component@link:../src::locator=react-native-remote-component-example%40workspace%3A."
resolution: "react-native-remote-ui@link:../src::locator=react-native-remote-component-example%40workspace%3A."
languageName: node
linkType: soft

Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "react-native-remote-component",
"name": "react-native-remote-ui",
"version": "0.1.0",
"description": "Remote component for react native",
"main": "lib/commonjs/index",
Expand Down Expand Up @@ -41,14 +41,14 @@
],
"repository": {
"type": "git",
"url": "git+https://github.com/dream11/react-native-remote-component.git"
"url": "git+https://github.com/dream11/react-native-remote-ui.git"
},
"author": "Dream11",
"license": "MIT",
"bugs": {
"url": "https://github.com/dream11/react-native-remote-component/issues"
"url": "https://github.com/dream11/react-native-remote-ui/issues"
},
"homepage": "https://github.com/dream11/react-native-remote-component#readme",
"homepage": "https://github.com/dream11/react-native-remote-ui#readme",
"publishConfig": {
"registry": "https://registry.npmjs.org/"
},
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,15 +4,15 @@ package = JSON.parse(File.read(File.join(__dir__, "package.json")))
folly_compiler_flags = '-DFOLLY_NO_CONFIG -DFOLLY_MOBILE=1 -DFOLLY_USE_LIBCPP=1 -Wno-comma -Wno-shorten-64-to-32'

Pod::Spec.new do |s|
s.name = "react-native-remote-component"
s.name = "react-native-remote-ui"
s.version = package["version"]
s.summary = package["description"]
s.homepage = package["homepage"]
s.license = package["license"]
s.authors = package["author"]

s.platforms = { :ios => min_ios_version_supported }
s.source = { :git => "https://github.com/dream11/react-native-remote-component.git", :tag => "#{s.version}" }
s.source = { :git => "https://github.com/dream11/react-native-remote-ui.git", :tag => "#{s.version}" }

s.source_files = "ios/**/*.{h,m,mm}"

Expand Down
2 changes: 1 addition & 1 deletion tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"compilerOptions": {
"rootDir": ".",
"paths": {
"react-native-remote-component": ["./src/index"]
"react-native-remote-ui": ["./src/index"]
},
"allowUnreachableCode": false,
"allowUnusedLabels": false,
Expand Down
10 changes: 5 additions & 5 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -11311,21 +11311,21 @@ __metadata:
express: ^4.17.1
react: 18.2.0
react-native: 0.73.6
react-native-remote-component: "link:../src"
react-native-remote-ui: "link:../src"
react-native-safe-area-context: ^4.9.0
react-native-screens: ^3.29.0
languageName: unknown
linkType: soft

"react-native-remote-component@link:../src::locator=react-native-remote-component-example%40workspace%3Aexample":
"react-native-remote-ui@link:../src::locator=react-native-remote-component-example%40workspace%3Aexample":
version: 0.0.0-use.local
resolution: "react-native-remote-component@link:../src::locator=react-native-remote-component-example%40workspace%3Aexample"
resolution: "react-native-remote-ui@link:../src::locator=react-native-remote-component-example%40workspace%3Aexample"
languageName: node
linkType: soft

"react-native-remote-component@workspace:.":
"react-native-remote-ui@workspace:.":
version: 0.0.0-use.local
resolution: "react-native-remote-component@workspace:."
resolution: "react-native-remote-ui@workspace:."
dependencies:
"@babel/cli": ^7.0.0
"@babel/core": ^7.20.0
Expand Down

0 comments on commit decbf38

Please sign in to comment.