mirror of
https://github.com/status-im/react-native-linear-gradient.git
synced 2025-02-27 23:00:40 +00:00
move images into subdirectory
This commit is contained in:
parent
8119e5e432
commit
9a6a629ea3
14
README.md
14
README.md
@ -17,7 +17,7 @@ or do it manually as described below:
|
||||
|
||||
1. Run `npm install react-native-linear-gradient --save`
|
||||
2. Open your project in XCode, right click on `Libraries` and click `Add
|
||||
Files to "Your Project Name"` Look under `node_modules/react-native-linear-gradient` and add `BVLinearGradient.xcodeproj`. [(Screenshot)](http://url.brentvatne.ca/g9Wp).
|
||||
Files to "Your Project Name"` Look under `node_modules/react-native-linear-gradient` and add `BVLinearGradient.xcodeproj`. [(Screenshot)](http://url.brentvatne.ca/g9Wp).
|
||||
3. Add `libBVLinearGradient.a` to `Build Phases -> Link Binary With Libraries`
|
||||
[(Screenshot)](http://url.brentvatne.ca/g9Wp).
|
||||
4. Click on `BVLinearGradient.xcodeproj` in `Libraries` and go the `Build
|
||||
@ -57,7 +57,7 @@ or do it manually as described below:
|
||||
protected void onCreate(Bundle savedInstanceState) {
|
||||
super.onCreate(savedInstanceState);
|
||||
mReactRootView = new ReactRootView(this);
|
||||
|
||||
|
||||
mReactInstanceManager = ReactInstanceManager.builder()
|
||||
.setApplication(getApplication())
|
||||
.setBundleAssetName("index.android.bundle")
|
||||
@ -67,9 +67,9 @@ or do it manually as described below:
|
||||
.setUseDeveloperSupport(BuildConfig.DEBUG)
|
||||
.setInitialLifecycleState(LifecycleState.RESUMED)
|
||||
.build();
|
||||
|
||||
|
||||
mReactRootView.startReactApplication(mReactInstanceManager, "SillyGoose", null);
|
||||
|
||||
|
||||
setContentView(mReactRootView);
|
||||
}
|
||||
```
|
||||
@ -81,7 +81,7 @@ or do it manually as described below:
|
||||
|
||||
The following code will produce something like this:
|
||||
|
||||

|
||||

|
||||
|
||||
```javascript
|
||||
// Within your render function
|
||||
@ -127,13 +127,13 @@ props:
|
||||
</LinearGradient>
|
||||
```
|
||||
|
||||

|
||||

|
||||
|
||||
### Updating the values for fun
|
||||
|
||||
Check out [Examples/AnimatedGradient] (`git clone` this project, cd into it, npm install, open in XCode and run) to see how this is done:
|
||||
|
||||

|
||||

|
||||
|
||||
*This gif was created using [licecap](http://www.cockos.com/licecap/) - a great piece of free OSS*
|
||||
|
||||
|
Before Width: | Height: | Size: 387 KiB After Width: | Height: | Size: 387 KiB |
Before Width: | Height: | Size: 305 KiB After Width: | Height: | Size: 305 KiB |
Before Width: | Height: | Size: 204 KiB After Width: | Height: | Size: 204 KiB |
Loading…
x
Reference in New Issue
Block a user